I am trying to display an array that has random numbers on an image. I intend to sort the numbers displayed and make some kind of an animation to explain how it is being done.
I have been successful at generating those numbers and using the random class but I am stuck at displaying those numbers on the screen. I do not want to do a 'System.out.println'.
The only way of displaying the array onto the image I see is to parse it into a string and use GreenfootImage.drawString() to draw it onto the image.
The problem with this is that I cannot do any operations (sorting) on that string later.

