Write a Java program to display the output
Attachments:
![](https://hi-static.z-dn.net/files/dd2/038d7a801040726e018c535c2ce2982a.png)
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