Hey guys Having a problem with my program i am writing this program out all in char format. it is suppose to out put the letters in order and then spit out the numbers in reverse. also the outputs that come out are in order and then off to the left where is it suppose to output the array number has a bunch of funky shapes. Please help. Thanks!
/**
* @(#)Week_nine_number_thiry_three.java
* Week_nine_number_thiry_three application
*
* @author
* @version 1.00 2012/4/3
*/
public class Week_nine_number_thiry_three
{
public static void main(String[] args)
{
char Letter [] = new char [9];
Letter[0] = 'A';
Letter[1] = 'B';
Letter[2] = 'C';
Letter[3] = 'D';
Letter[4] = 'F';
Letter[5] = 'G';
Letter[6] = 'H';
Letter[7] = 'I';
Letter[8] = 'J';
System.out.println("Forward");
System.out.println("-------");
for (char i = 0; i < Letter.length; i++)
{
System.out.println(" " + i + " " + Letter[i]);
}
System.out.println(" ");
System.out.println("=======");
System.out.println("Reverse");
System.out.println("-------");
for (char r = Letter[9] - 1; r >= 0; r--)
{
System.out.println(" " + r + " " + Letter[r]);
}
}
}