Problems regarding code submission

I don’t really understand how I am supposed to submit the code for different inputs.
For java am I supposed to use the scanner class to take input inside the main method or am I supposed to create a new method to take input?

also the unlock editorial button doesn’t work