Can you print out the contents of the array and post it so I can see what you are asking about?
Use the Arrays class's toString method to format the array for printing.

System.out.println("the...