Instead of having your methods return void and printing, have them return String.
Then have a take a String as an argument and print the newline followed by the String passed in.
Altri suggerimenti
Your code almost makes me cry.
But to the point, i'am not sure what your trying to achieve here.
I really dont see what wrong with System.out.println();
Try using a toString() method in your array class and try taking an object orientated approach.
I think you should use Object Oriented practices :
your data, random, array, etc. should a Classes
classes with a custom toString() or a prettyPrint() method
So your aim is something like :
Data data = new Data();
System.out.println(data.toString());
But I'm not sure what the question is really about...
In Eclipse you can type Syso and press Ctrl+Space at the same time if you want to make it easier to type it.