hi all!
i want to have a class that reads a file and get the data as an ArrayList<
String[]> (each Strin[] in the arrylist is a line from the file).
should i create the new class as:
or should i use the arraylist as a variable?
or it isn't matter?
is extending ArrayList is something acceptable?
thanks all, and sorry for this beginner question..
i usually find myself creating classes that extending Arraylist or Maps, and i wanted to know if there are any drawbacks, or problems with this way of working.
the propose of this Datareader class is only to read a given file and store the data for later use - in an ArrayList.
(i use the data i read later in another class).
thanks!