Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < n; i += 1)
- for(int i = 0; i < n; i++)
- //Java
- public class ArrayIterator implements Iterator<T> {
- private final T[] array;
- private int index = 0;
- public ArrayIterator(T ... array) {
- this.array = array;
- }
- public T next {
- if (! hasNext()) throw new NoSuchElementException();
- return array[index++];
- }
- ...
- }
- int k;
- int *kpointer = &k;
- *kpointer++ = 7;
Add Comment
Please, Sign In to add comment