public static <T> void loadCollection(String fileName, Class<T> itemClass, Collection<T> collection) throws NoSuchMethodException, InstantiationException,
      IllegalAccessException, InvocationTargetException, IOException {
    loadCollection(new File(fileName), itemClass, collection);
  }
public static < T > void loadCollection ( String fileName , Class < T > itemClass , Collection < T > collection ) throws NoSuchMethodException , InstantiationException , IllegalAccessException , InvocationTargetException , IOException { loadCollection ( new File ( fileName ) , itemClass , collection ) ; }
Adds the items from the file to the collection.

@param <T>
The type of the items.
@param fileName
The name of the file from which items should be loaded.
@param itemClass
The class of the items (must have a constructor that accepts a
String).
@param collection
The collection to which items should be added.