1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/templates/solution/java/Solution.java

13 lines
287 B
Java
Raw Normal View History

2021-06-24 22:10:08 +02:00
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
String line;
2021-06-25 11:27:23 +02:00
Scanner scanner = new Scanner(System.in);
while(scanner.hasNextLine()) {
line = scanner.nextLine();
2021-06-24 22:10:08 +02:00
System.out.println("Hello, " + line + "!");
2021-06-25 11:27:23 +02:00
}
2021-06-24 22:10:08 +02:00
}
}