public static <E>boolean isEmpty(Collection<E> c){
  return (c == null) || c.isEmpty();
}

public static < E > boolean isEmpty ( Collection < E > c ) { return ( c == null ) || c . isEmpty ( ) ; }
check whether collection c is empty .
