Java List First Item firstObjectFromList(List list)

Here you can find the source of firstObjectFromList(List list)

Description

first Object From List

License

Open Source License

Declaration

public static Object firstObjectFromList(List list) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    public static Object firstObjectFromList(List list) {
        Object result = null;//  w w w  . j a va2s  . co m
        if (list != null && list.size() > 0) {
            result = list.get(0);
        }
        return result;
    }
}

Related

  1. firstColumnRemovable(List data)
  2. firstElement(List list)
  3. firstItem(Iterable list)
  4. firstItem(List items)
  5. firstMatch(List src, String... lookup)
  6. firstOrDefault(List items)
  7. firstStartsWith(List lines, String startsWith)
  8. firstUnique(List list)
  9. firstValue(List list)