First of all you need this statement...
public static void main(String args) throws Exception
The 'throws Exception' statement is whats needed in the main().
Also there are different ways to accept user input. What I use mostly is this:
p1 = (char)System.in.read();
Where p1 is your variable that will save the user's input. Note that you will need a System.in.read(); for each character accepted.