1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

feat(languages): add Java support

This commit is contained in:
divlo
2021-06-24 22:10:08 +02:00
parent 719058b2ff
commit 8a41cb67f0
6 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,12 @@
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 + "!");
}
}
}