Add Java-Kompendium book

This commit is contained in:
2025-11-24 23:20:51 +01:00
parent f3b3d4b1a2
commit a680b83e47
8 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import java.util.*;
import java.io.*;
public class Task2 {
public static void main(String[] args) throws IOException {
var workers = new ArrayList<String>();
var stream = new InputStreamReader(System.in);
var bufferedStream = new BufferedReader(stream);
for (int i = 0; i < 5; ++i) {
workers.add(bufferedStream.readLine());
}
System.out.println("Folgende Mitarbeiter haben sie angegeben: " + workers);
}
}