Java ListIterator Usage peekNext(ListIterator it)

Here you can find the source of peekNext(ListIterator it)

Description

peek Next

License

Open Source License

Declaration

public static <E> E peekNext(ListIterator<E> it) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ListIterator;

public class Main {
    public static <E> E peekNext(ListIterator<E> it) {
        E e = null;/*from  w w w.jav  a  2s. co m*/
        if (it.hasNext()) {
            e = it.next();
            it.previous();
        }
        return e;
    }
}

Related

  1. normalizeVersion(String version, int length)
  2. numberToDigits(int num)
  3. overlap(List> lists, int before, int after)
  4. parsePath(String sPath)
  5. partialSort(List list, int numTop, Comparator c)
  6. peekNext(ListIterator iterator)
  7. print(final List concatenatables)
  8. removeCustomFilters(List filters)
  9. removeDuplicates(List list)