I was trying to execute the program on Pg 346 from Head First Java, MiniMusicCmdLine but the below error message displayed. I have gone through the progream multiple times but could not located what is causing this error.
Apart from the fact that there some unknown methods in your cord (e.g. ParseInt), it seems that there is a strange character at the end of your file. Maybe you copy/pasted the code and it left some strange characters ? Remove the last line, and retype "}".
I have typed in everything. I just noticed that there was an extrac closing curly brace at the last which was not posted in this thread which I removed now but getting differnt error now.
MiniMusicCmdLine.java:8: cannot find symbol
symbol : method ParseInt(java.lang.String)
location: class java.lang.Integer int instrument = Integer.ParseInt(args);