Momo Sawada wrote: . . . it displays stuff like [{09gsd.... how can i make it display the array elements? . . .
If you go through the
Java™ Language Specification, you find that an array has . . .
All the members inherited from class Object; the only method of Object that is not inherited is its clone method.
That means it has an un-overridden
toString() method. Clicking that last link tells you that you get a printout in the format ClassName@123abc45, which in the case of an array looks like [ClassName@8734eb2a or something. Note that primitive arrays start with [ and one letter, I think chosen from BCDFILSZ. All arrays have an initial [, and I think arrays of arrays start with [[, and similarly more [][][] in the code will produce more [[[ in the printout.