Write a Java program to display the output
Attachments:
Answers
Answered by
0
Answer:
public class Echo { public static void main(String[] args) { String line;
Scanner in = new Scanner(System. in); System. out. print("Type something: "); line = in. nextLine();
System. out. println("You said: " + line); System. out. print("Type something else: "); line = in. nextLine();
Similar questions