Ti ho scritto un esempio da cui puoi prendere spunto
codice:
public List<Data> linee = new ArrayList<>();
public void inputDaFile(){
try{
Scanner scan = new Scanner(new File("file.txt"));
while(scan.hasNext())
linee.add(new Data(scan.next().charAt(0), scan.nextInt(), scan.nextInt() != 0));
}
catch(IOException e){
System.out.println("Errore file non presente: " + e);
System.exit(1);
}
}
class Data{
public final char c1;
public final int i1;
public final boolean d;
public Data(char c1, int i1, boolean d){
this.c1 = c1;
this.i1 = i1;
this.d = d;
}
}