I\'m trying to read a .txt file that contains several lines with the name of a professional carreer in each one of them. I\'ve created a Scanner but whenever I want to add what
s.nextLine() returns a String. But your ArrayList has generic type Claseqla. You need to create a Claseqla object using the string you grab from the s.nextLine() call, and then add that object to your ArrayList.