In Java: I have a class Students. I would like to read a list of students from a file. Which one is more elegant:Reading and constructing the list in main(), and creating a Student object with the new list passed to the constructorPassing a FileReader to the constructor, who does the reading?Something else?
Where to read from file?
java;coding style