From c45f034b75f084786ccd171d4fe14c251985d5f6 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 11:40:21 +0100 Subject: [PATCH] added while loop that iterates through file --- src/main/java/game/runGame.java | 7 +++++++ target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 5705 -> 5796 bytes target/maven-archiver/pom.properties | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/runGame.java b/src/main/java/game/runGame.java index a52cc23..264a37e 100644 --- a/src/main/java/game/runGame.java +++ b/src/main/java/game/runGame.java @@ -18,6 +18,13 @@ public class runGame { try { reader = new BufferedReader(new FileReader(Path)); String line = reader.readLine(); + int i = 0; + while (line != null) { + Arr[i] = line; + line = reader.readLine(); + i++; + } + reader.close(); } catch (IOException e) { e.printStackTrace(); } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index f2c986d3f3ad86c17397273d229579b35fd9ca8d..c6ca702349ac993dc2d9e93bb4098cf2c9e12403 100644 GIT binary patch delta 1193 zcmX@9vqYCWz?+$civa}kCUUDW=1w%44J6Jf0f~=_yty&+Lak>#+47i)f#K<7c}D5_ z+d-EDL}J^Q`9>dF%B!moz#6C#@JiH0K%;}tnAJr>=GgK8CKm70OIChj{Kvgs$@syE z7mNA-_0%h@o7~dvEI+Aulm6>9d%xNJ{QLd4Kf~e~-HZ4bMZ4M*oS4q;KIX0*ZQ^zN z=F;BS%?~(Q)YeRT>chqI>vFbWi(sJO)c}59hx*%Q-_ERw)!q9{>%xW@Q|-P`z0i9S z=lUFM>RGoxx)GLHZR6G8#_O9Q#&LVu#-FFOj5e?TpO*3KukY-xAN4A>o4dpsmt=1} zb#vycYtu4k&(816yQMWrrRd@0<(1zwgfb?FZs%6Xn!8V|wU1BoqUM6%f-N5|)z*6* z&b{-|`((6g{j^J$=C2Fg)+fhXzVz5Zr;Ra&p?8$uu)g?n>5k*UJJWBuUhKBx{cE%( zbNb+-`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