Explain the logic you are trying to accomplish with this:

alphabet[i] = alphabet[i+1];
if (alphabet[i] == alphabet[25]) {
System.out.println("A");
}


The questions that I have here...