Are you even testing this? Just use System.out.println as debugging statements. Print the array and see if thats what you want. If you still can't get it, then read some of the Java tutorials, their...