posted 20 years ago
char[] ch = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
int j = ch.length;
System.out.println("ALPHABET FROM A TO Z alphabet from z to a");
for (int i = 0; i < ch.length; i++)
{
System.out.print(Character.toString(Character.toUpperCase(ch[i])) + Character.toString(ch[j - 1]) + " ");
--j;
}
System.out.println();
I think the above code sample helps