Renamed indexes to matrix

This commit is contained in:
Willem 2022-02-04 20:01:05 +01:00
parent 184da4cf87
commit 6541a02041
21 changed files with 151 additions and 107 deletions

View file

@ -37,6 +37,13 @@ public final class BaseIteratorOctalStack implements BaseIteratorOctal {
@Override
public T08PartOctal next() {
if (stack.isEmpty()) {
throw new IllegalStateException("Stack is empty.");
}
if (stack.peek().hasNext()) {
return stack.peek().next();
}
stack.pop();
if (stack.isEmpty()) {
throw new IllegalStateException("Stack is empty.");
}