Back to project page ScalAR.
The source code is released under:
GNU General Public License
If you think the Android project ScalAR listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.dhbw.andobjviewer.util; /*from w w w.j av a 2s. c om*/ import java.util.Iterator; import java.util.NoSuchElementException; public class ArrayIterator implements Iterator { private Object array[]; private int pos = 0; public ArrayIterator(Object anArray[]) { array = anArray; } public boolean hasNext() { return pos < array.length; } public Object next() throws NoSuchElementException { if (hasNext()) return array[pos++]; else throw new NoSuchElementException(); } public void remove() { throw new UnsupportedOperationException(); } }