Input Method For Char In Java