Category test {
Public static void main(String[] args){
Scanner x = new scanner (system. in); //Construct a Scanner object with the passed-in parameters of System.in.
char a = x . nextchar(); //Read an int value
If (a> =' a'&<z')
System.out.println ("the next letter is"+(a+1));
else if(a=='z ')
System.out.println ("The next letter is"+'a');
If (a> =' a'&<z')
System.out.println ("the next letter is"+(a+1));
else if(a=='Z ')
System.out.println ("The next letter is"+'a');
other
System.out.println ("Incorrect input");
}
}