Since you are "Extremely very new to Java", then you should frequent this
The Java™ Tutorials[
^].
Go through all the lessons and examples, no skipping. You will be able to solve your question (aka assignment). Pay particular attention to comparison operators (<, >, --, !=) and decision making construct (if else if). If you need to perform input/output operation, ask Google, there are plenty of examples out in the WWW.