The quieter you are, the more you are able to hear.
Kemal Sokolovic wrote:That's not the correct signature of main method.
The quieter you are, the more you are able to hear.
tSuttle Dude wrote:Ok, thanks. Yep the 'Object String' does not belong. That must have been something that Eclipse put in there after I clicked something for formatting stuff. Deleted the 'Object String'. Now, I'm getting:
Error: Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
at com.example.MusicStore.MusicStore.main(MusicStore.java:48)
Which is for line 42. I'll work a bit and see if I can figure out what is going on -- it shouldn't be asking for a boolean, I'm assuming...as my getTest method is just to return the information from the Music class.
The quieter you are, the more you are able to hear.
tSuttle Dude wrote:
Would return whatever string I scanned in for 'album.' That is in fact not what happens..it returns nothing.
tSuttle Dude wrote:Hi Jeff,
the code is actually: System.out.println( music.getTest() );
It will compile but it doesn't return anything.
Any insight on why not in light of my above noted changes to getTest method?