Re: Iterate over a file list

2007-01-25 Thread Paul Benedict
Properties must begin with "get" -- which means "length" is not a property. You will have to use scriptlets, or wrap your File in some class which can expose a getter for you. chuanjiang lo wrote: Hi all, I have an ArrayList (fileList) that stores the type java.io.File Im trying to iterate t

Iterate over a file list

2007-01-25 Thread chuanjiang lo
Hi all, I have an ArrayList (fileList) that stores the type java.io.File Im trying to iterate through the list to get the name and size of the file java.io.File provides a method length() that return us the size of the file. So how i can get the size of the file? i tried and