Neue Klasse: FloatIterator
parent
e4e0a9d2cc
commit
706278fae7
|
@ -0,0 +1,21 @@
|
|||
package org.hwo;
|
||||
|
||||
public class FloatIterator {
|
||||
|
||||
float[] values;
|
||||
int i = 0;
|
||||
|
||||
public FloatIterator(float[] v){
|
||||
this.values = v;
|
||||
}
|
||||
|
||||
public boolean hasNext(){
|
||||
return (i < this.values.length);
|
||||
};
|
||||
|
||||
public float next(){
|
||||
return this.values[i++];
|
||||
};
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue