ArrayManipulater dataSet1 = new ArrayManipulater();
System.out.println(dataSet1.createRandomArray().toString());
It says cannot invoke string on the primitive type void.
I instead have to do this to make it work.
ArrayManipulater dataSet1 = new ArrayManipulater();
dataSet1.createRandomArray;
System.out.println(dataSet1.toString());
Also, I don't really get the difference between the built in toString functionality and a self-written toString method in a class. We were told to write a toString method that prints out an array but how does the compiler interpret our toString method versus the built-in toString method.