Question: How do you write the Java Code that reads through the files. Don't use strip() the lines you read in. Example of track-5.txt song file:

How do you write the Java Code that reads through the files. Don't use strip() the lines you read in. Example of track-5.txt song file: 
TRMMMCH128F425532CSOBNYVR12A8C13558CYerba BravaSi Vos Quers

Use the split method with "" as argument to split into array fields.

 import java.io.File; import java.io.FileNotFoundException;; import java.util.Scanner; public class Jukebox { public Jukebox(String filename) throws FileNotFoundException { 
 Scanner in = new Scanner(new File(filename));
 }

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!