Need help with two classes "Cannonball Component" and "Cannonball"

I couldn't figure out the code with the rest but.

Feel free to look at code check :

Welcome to DaniWeb!! I wish I could help you but unfortunately I don't have any Java experience. Hopefully someone will be around shortly and see this and be able to help you. Good luck.

OK, I looked. It's a standard "complete the code" learning exercise.
How far have you got? What have you tried? Exactly what help do you need?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.