This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
The BeatBox.java class of HeadFirstJava worked fine untill i added new innerclasses "MySendListener" and "MyreadInListener" (including the buttons with ActionListener) for serializing and saving.
So, the code below works fine without the code about serializeIt and restore. From line 72 to 78 and line 177 to 217
As soon as i add this above code about serializeIt and restore i get errors on line 138 (makeTracks(trackList)), line 139 and 142 track.add(makeEvent()
I cant figure out the negative relation of the new "serializeIt" and "restore" inner classes on these methods named makeTracks(trackList) and track.add(makeEvent().
That is a very common problem. Some IDEs make you write backwards to make sure you pair your braces correctly. Get into the habit of writing backwards yourself when you use a text editor; that will make braces easier to find.