I am trying to sort a certain amount of integers. I have an error in my code. The code is below as well as my error message. Any suggestions of how to fix this? I believe it has to do with it being primitive data rather than an object?
`public static void main(String[] args) {
int[] intList;
int size;
Scanner scan = new Scanner(System.in);
System.out.print("\nHow many integers do you want to sort? ");
size = scan.nextInt();
intList = new int[size];
System.out.println("\nEnter the numbers...");
for (int i = 0; i < size; i++)
intList[i] = scan.nextInt();
Sorting.insertionSort(intList);
System.out.println("\nYour numbers in sorted order...");
for (int i = 0; i < size; i++)
System.out.print(intList[i] + " ");
System.out.println();
`
and the error code is this.....
xception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: Sorting.insertionSort
at Numbers.main(Numbers.java:29)
Java Result: 1
BUILD SUCCESSFUL (total time: 51 seconds)'