Java examples for java.util:Iterable Element
get First Element Of Iterable
//package com.java2s; public class Main { public static <T> T getFirstElementOf(Iterable<T> iterable) { return iterable.iterator().next(); }/* w w w.java2 s. c om*/ }