Possible Duplicate: Declaring an array of unknown size. I'm working in Java ... Use an ArrayList instead. List list = new ArrayList();. it grows ...
stackoverflow.com