Here you can find the source of moveNext(Iterator iterator)
@SuppressWarnings("rawtypes") public static boolean moveNext(Iterator iterator)
//package com.java2s; //License from project: Apache License import java.util.Iterator; public class Main { @SuppressWarnings("rawtypes") public static boolean moveNext(Iterator iterator) { if (iterator.hasNext()) { iterator.next();//from w w w . ja va 2 s .co m return true; } else { return false; } } }