I'm currently writing up a report. One of the methods reads a file and adds it line by line to an arraylist. Is that the correct terminology or should I say it's added to an arraylist object - or is it something else entirely?
Printable View
I'm currently writing up a report. One of the methods reads a file and adds it line by line to an arraylist. Is that the correct terminology or should I say it's added to an arraylist object - or is it something else entirely?
What ever your lecturer would say is the best thing to go with.
But an ArrayList is an Object, just as everything else that isn't a primitive.
Chris
Or you could just say into a list or collection, since ArrayList is a List and List is a Collection :D
// Json