public void loadData(String file) { try { Scanner txt = new Scanner(new File(file)); mp3File = txt.nextLine(); artist = txt.nextLine(); album = txt.nextLine(); while (txt.hasNext()) { long noteTime = txt.nextLong(); int lengthThrowaway = txt.nextInt(); String states = txt.next().trim(); lines.add(new Line(noteTime, states)); } song = new Music(mp3File); song.load(); } catch (Exception e) { System.out.println(e); } } // end loadData