Click to See Complete Forum and Search --> : Weird language pattern (warning: java noob)


sneakyimp
02-25-2009, 04:26 PM
I'm new to Java. I was wondering what is going on in this line...especially the <File> part. I've never seen that pattern in a programming language before.

List<File> files = FileListing.getFileListing(startingDirectory);

chazzy
02-25-2009, 07:31 PM
it means that the return type is a list, and the list only contains File objects.

sneakyimp
02-25-2009, 08:11 PM
thanks!