NodeList.java : java class used revert the list.