public static void main(String[] args) {
try {
Scanner scanner = new Scanner(System.in);
String str = null;
do {
str = scanner.nextLine();
System.out.println(str);
} while (!"exit".equals(str));
} catch (Exception e) {
e.printStackTrace();
}
}
09-24
529
09-22
263
10-29
538