code: public static <T> T head(List<T> list)
  	{
  		if (list.isEmpty())
  			return null;
  		else
  			return list.get(0);
  	}
docs: Returns the first element of a list (or null if the list is empty)
  
  @param list
  
  @return