Compare commits
6 Commits
readfile
...
daf0ec541d
| Author | SHA1 | Date | |
|---|---|---|---|
| daf0ec541d | |||
| 268f4eee43 | |||
| a2bd838467 | |||
| 78dfa848fa | |||
|
|
2562126caa | ||
| 9c6592fbff |
10
.idea/runConfigurations.xml
generated
Normal file
10
.idea/runConfigurations.xml
generated
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?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>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
public class Main {
|
public class EinkommenInfo {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("Hello world!");
|
System.out.println("Hello world!");
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
public class Gebiet implements GebietInterface{
|
public class Gebiet implements GebietInterface{
|
||||||
private int jahr;
|
private int jahr;
|
||||||
private int schlüssel;
|
private int schlüssel;
|
||||||
@@ -31,16 +30,22 @@ public class Gebiet implements GebietInterface{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getGesamtEinkommen() {
|
public long getGesamtEinkommen() {
|
||||||
|
if(gesamtEinkommen <= 0){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return gesamtEinkommen;
|
return gesamtEinkommen;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getDurchschnittsEinkommen() {
|
public int getDurchschnittsEinkommen() {
|
||||||
|
if(durchschnittsEinkommen <= 0){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return durchschnittsEinkommen;
|
return durchschnittsEinkommen;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getAnzahlEinwohner() {
|
public int getAnzahlEinwohner() {
|
||||||
return 0;
|
return (int)(gesamtEinkommen / durchschnittsEinkommen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,34 @@
|
|||||||
public class GebietsListe {
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class GebietsListe {
|
||||||
|
private List<GebietMock> gebietListe = new ArrayList<>();
|
||||||
|
|
||||||
|
public GebietsListe(){
|
||||||
|
this.gebietListe = gebietListe;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Gebiet getGebietMinDurchschnittEinkommen(){
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Gebiet getGebietMaxEinwohner(){
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAnzahlGesamt(){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAnzahlUnvollstaendig(){
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Gebiet> getGebietNachNamen(String namensanfang){
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user