Renamed indexes to matrix
This commit is contained in:
parent
184da4cf87
commit
6541a02041
21 changed files with 151 additions and 107 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue