public static <E>List<E> of(E e1){
  List<E> list=new ArrayList<>();
  list.add(e1);
  return list;
}

public static < E > List < E > of ( E e1 ) { List < E > list = new ArrayList < > ( ) ; list . add ( e1 ) ; return list ; }
returns a list with a single entry .
