can we use input.readline() to accept char datatype OR we just need to perform some conversion before doing this?
Depends really on what type input is - commonly (such as a bufferedreader) readLine will return a String. In order to get a char of a String just use the charAt(n) method of String