Ask a New Question
Search
Questions and answers by
Science Java
Questions (1)
For this task you will create a program that prints out a user-specified string. Then, on the next line, it prints out the
1 answer
541 views
Answers (1)
import java.util.Scanner; public class StringFun { public static void main(String[] args) { Scanner input = new Scanner(System.in); String userInput, newString; int stringLength; // Prompt user to enter a word System.out.print("Enter a word: "); // Read