String line = c.input.readString();if(line==null || line.length==0){deal with no input}else{response = line.charAt(0);..........}