mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
14 lines
345 B
Java
14 lines
345 B
Java
import java.util.Scanner;
|
|
|
|
public class Solution {
|
|
public static void main(String[] args) {
|
|
String line;
|
|
Scanner scanner = new Scanner(System.in);
|
|
while (scanner.hasNextLine()) {
|
|
line = scanner.nextLine();
|
|
System.out.println("Hello, " + line + "!");
|
|
}
|
|
scanner.close();
|
|
}
|
|
}
|