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