Spaces:
Running
Running
Scanner reader = new Scanner(new File("fileName.txt")); list.add(reader.nextLine());
Browse files
Week 3: Objects, files and exceptions/16b. Players from FILE
CHANGED
|
@@ -80,3 +80,23 @@ public class Test {
|
|
| 80 |
|
| 81 |
|
| 82 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
}
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
Testing reading the file...
|
| 93 |
+
Players in list:
|
| 94 |
+
Thomas
|
| 95 |
+
Jack
|
| 96 |
+
Keith
|
| 97 |
+
Vance
|
| 98 |
+
Pete
|
| 99 |
+
Ann
|
| 100 |
+
Annie
|
| 101 |
+
Tom
|
| 102 |
+
|