i am new to java and i want to take an input as follows:
0 2 a
I am able to take the integer input but unable to take the character input.
i am using following code
Scanner s = new Scanner(System.in);
int o = s.nextInt();
if(o==0)
{
int l=s.nextInt();
char c=s.next().charAt(0);
}