Added the Entrys for the Days 1 - 7

This commit is contained in:
Jona Krampe
2022-12-20 07:35:29 +00:00
parent f41d001d33
commit cfeab93722
43 changed files with 9229 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
public class main {
public static void main(String[] args) {
try {
RandomAccessFile file = new RandomAccessFile("input.txt", "r");
String str;
//Part 1
System.out.print("Part 1: ");
while ((str = file.readLine()) != null) {
System.out.println(str);
}
//Part 2
System.out.print("Part 2: ");
} catch (IOException e) {
e.printStackTrace();
}
}
}