fix: meine dummen fehler (:

This commit is contained in:
Johannes Kantz 2022-12-06 14:37:34 +01:00
parent 78dfa848fa
commit 8382a47d7e
2 changed files with 3 additions and 11 deletions

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

View File

@ -15,7 +15,9 @@ public class GebietsDatei {
try {
Files.readAllLines(Paths.get(dateiName)).forEach(line -> {
String[] parts = line.split(";");
gebiete.add(new Gebiet(Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), parts[2], Long.parseLong(parts[3]), Integer.parseInt(parts[4])));
System.out.println(parts[0]);
gebiete.add(new Gebiet(Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), parts[2], (parts[3].equals("-")) ? 0 : Long.parseLong(parts[3]), (parts[4].equals("-")) ? 0 : Integer.parseInt(parts[4])));
});
} catch (Exception e) {
e.printStackTrace();