hey guys,
i got a little question about my code...
does the code removes the int of the arraylist? and gives it a true value out if it is removed?
public boolean kL(int ktonummer){ if (finKntoIdex(ktonummer) > 0) { konten.remove(ktonummer); return true; } else return false; } private int finKntoIdex(int ktonummer){ for(int i = 0;i<konten.size();i++){ if(konten.get(i).getKontonummer() == ktonummer){ return i; } } return -1; } private ArrayList<Konto> konten = new ArrayList<Konto>();