1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/hello-world/solutions/java/function/Solution.java

14 lines
345 B
Java
Raw Normal View History

2021-06-24 22:10:08 +02:00
import java.util.Scanner;
public class Solution {
2022-12-30 00:55:21 +01:00
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();
2021-06-25 11:27:23 +02:00
}
2021-06-24 22:10:08 +02:00
}