Input an English letter and calculate the output of the next letter, such as input A, output B, input Z and output A .. How to write in java? Ask the great god for help

Import java.util. *;

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");

}

}