Format of Dec challenge

I m using java to do the contest, and what specifically is the format of submitting our code? Like should we create a class and use main to send parameters in or should we use keyboard inputs?

Here is the general guideline for Java . You can also refer other java solutions for more info on the same.