📄 divisioniterator.java
字号:
import java.util.Iterator;
public class DivisionIterator implements Iterator
{
private Corporate[] corporate;
private int location = 0;
public DivisionIterator(Corporate[] c)
{
corporate = c;
}
public java.lang.Object next()
{
return corporate[location++];
}
public boolean hasNext()
{
if(location < corporate.length && corporate[location] != null){
return true;
} else {
return false;
}
}
public void remove()
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -