Aufgabenblatt 6

This commit is contained in:
Anton Ertl
2022-05-16 20:27:14 +02:00
parent 1e789dba34
commit e311ef3c6b
7 changed files with 428 additions and 0 deletions

15
src/MassiveIterator.java Normal file
View File

@ -0,0 +1,15 @@
import java.util.Iterator;
// An iterator over elements of 'Massive'.
//
public interface MassiveIterator extends Iterator<Massive> {
@Override
// Returns the next element in the iteration.
// (Returns 'null' if the iteration has no more elements.)
Massive next();
@Override
// Returns 'true' if the iteration has more elements.
boolean hasNext();
}