ich komm nicht mehr weiter

This commit is contained in:
Johannes Schmelz 2024-06-14 01:12:27 +02:00
parent 7972c9088c
commit 55e6561e02
8 changed files with 31 additions and 2 deletions

Binary file not shown.

View File

@ -29,11 +29,14 @@ public class Array2dIterator<T> implements Iterator<T>{
// return false; // return false;
if (list.get(index+1) != null) { if (list.get(index)) {
return true; return true;
} else { } else {
return false; return false;
} }
// return true;
} }
@Override @Override

View File

@ -0,0 +1,26 @@
package uebung09.iterator;
import java.util.Iterator;
import java.util.List;
public class SkipNullIterator<T> implements Iterator<T>{
public SkipNullIterator(Iterator i){
}
@Override
public boolean hasNext() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'hasNext'");
}
@Override
public T next() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'next'");
}
}