Recommendations:

First learn Java.
Then write the code.


Seriously, you must at least attempt to solve this first before just dumping your assignment here. Let's see your mistakes if we're...