Erstelleung Klasse
This commit is contained in:
parent
becadc63be
commit
d6685d8020
@ -1,4 +1,5 @@
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
@ -15,8 +16,11 @@ public class GebietsDatei extends GebietsListe {
|
||||
public ArrayList<Gebiet> laden() {
|
||||
try {
|
||||
Path pfad = Paths.get(dateiname);
|
||||
gebiete = new ArrayList<Gebiet>();
|
||||
return gebiete;
|
||||
List<String> zeilen = Files.readAllLines(pfad);
|
||||
|
||||
for (zeilen : zeilen){
|
||||
|
||||
}
|
||||
}
|
||||
catch (IOException e){
|
||||
System.out.println("Die Datei kann nicht gelesen werden");
|
||||
|
Loading…
Reference in New Issue
Block a user