testSed4 = sedenia4.get(0);
while (it8.hasNext()) {
tempRozdiel = it8.next();
tempSed4 = it7.next();
if (testSed4.equals(tempSed4)) {
testSed4 = tempSed4;
casy.add(tempRozdiel);
} else {
casy.add(hodnota);
testSed4 = tempSed4;
}
}
for (int j = 0; j < casy.size(); j++) {
System.out.println(casy.get(j) + " casy");
}
Why I have error in line: tempRozdiel = it8.next();
What is bad in this code ?
tempRozdieland Iterator?