Compare commits
No commits in common. "becadc63be54af1cf285b5b6568007d5a9bb2439" and "50cce6a92bbb967e16be9374fb076e2d04dd3327" have entirely different histories.
becadc63be
...
50cce6a92b
@ -1,28 +1,12 @@
|
|||||||
import java.io.IOException;
|
import java.lang.reflect.Array;
|
||||||
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 extends GebietsListe {
|
public class GebietsDatei {
|
||||||
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