1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/hello-world/solutions/java/function/Solution.java
2021-06-25 11:27:23 +02:00

13 lines
287 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 + "!");
}
}
}