Java implements the movement of the Tower of Hanoi

Import java.util.*;
 
Public class Main {
Public static void Show(int q,char w,char e)
{
System.out.printf("Move disk %d from %c to %c\n",q, w,e);
}
Public static void Move(int n,char a,char b,char c)
{
If(n==1)
Show(1,a,c);
Else
{
Move(n-1, a, c, b); / / / move the remaining n-1 from the a disk to the b disk using the c disk;
Show(n,a,c);
Move(n-1,b,a,c);/// the same reason;
//n--;
}
}
 
Public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
Int n=cin.nextInt();
Move(n,'A','B','C');
}
}