Compare commits
2 Commits
50cce6a92b
...
becadc63be
Author | SHA1 | Date | |
---|---|---|---|
becadc63be | |||
34346f757b |
@ -1,12 +1,28 @@
|
|||||||
import java.lang.reflect.Array;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.Paths;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
public class GebietsDatei {
|
public class GebietsDatei extends GebietsListe {
|
||||||
|
private List<Gebiet> gebiete = new ArrayList<>();
|
||||||
public String dateiname;
|
public String dateiname;
|
||||||
|
|
||||||
public GebietsDatei(String dateiname) {
|
public GebietsDatei(String dateiname) {
|
||||||
this.dateiname = dateiname;
|
this.dateiname = dateiname;
|
||||||
}
|
}
|
||||||
|
public ArrayList<Gebiet> laden() {
|
||||||
|
try {
|
||||||
|
Path pfad = Paths.get(dateiname);
|
||||||
|
gebiete = new ArrayList<Gebiet>();
|
||||||
|
return gebiete;
|
||||||
|
}
|
||||||
|
catch (IOException e){
|
||||||
|
System.out.println("Die Datei kann nicht gelesen werden");
|
||||||
|
}
|
||||||
|
return gebiete;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user