Answer:
using java programming language;
.
.
import java.util.Scanner;
public class Echo {
public static void main(String[] args) {
String message; int n;
Scanner in = new Scanner(System.in);
System.out.print("Enter your message: ");
System.out.print(" Enter n times");
message= in.nextLine();
System.out.println( line*n);
}
Step-by-step explanation:
The System class also provides the special value System.in, which is an InputStream
that provides methods for reading input from the keyboard