Welcome number 3 to you today.
Jack Zheng wrote:..the program throwed a "NonPointerException"at BeatBox.makeTrack(BeatBox.java:71)..
If you are using an
IDE, you can add debug points and run the program in debug mode. And then you can easily find out which variables having null are trying to access instance methods or fields.
If not IDE, then you can add print statements that print the state of each of the variables on console.
As user aboves has suggested to find out, do so.