I am trying to insert a char value from scanner class. I tried it in the following way.
Scanner sc = new Scanner(System.in);
character = sc.nextChar();
It's not working Since my next method only take char value. I tried it by using sc.charAt(0). it worked. Is there another way to try.