No one is going to do this for you. I suggest you make the effort to get started, if you have a problem along the way post some code, a specific question about the code, full error messages if there are any, what behavior you expect, and if it is different the behavior you are getting. If you are completely confused, you can start here:
Trail: Learning the Java Language (The Java™ Tutorials)
My whole future depends on my exam
Your future depends upon every choice you make, including trying to cheat to get someone to do the assignment for you.