xxxxxxxxxx
import java.util.Scanner;
public class Main {
public static void main(String args[])
{
// Using Scanner for Getting Input from User
Scanner in = new Scanner(System.in);
while (true) {
String s = in.nextLine();
System.out.println("You entered string " + s);
}
}
}