Computer Science, asked by SAB0108, 3 months ago

Write a Java program to display the output

Attachments:

Answers

Answered by mamatabari81
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