I got this code:
import java.util.*; import java.io.*; public class Oblig3A{ public static void main(String[]args){ OrdAnalyse O = new OrdAnalyse();
Use Arrays.toString() to log your Array's contents
Arrays.toString()
System.out.println(Arrays.toString(ordArray));
If you want a formatted output you need to iterate over it using a good old for loop.
for
for (int i = 0; i < ordArray.length; i++) { System.out.printf("ordArray[%d] = %s", i, ordArray[i]); }