I have created an integer array, i want to store the size of the array in a variable (for an insertion sort). But i get an error when i do the following code.The error is "cannot perform length() on an integer array" (or something similar to that, i'm not at my computer now so i cant see the error).Code:int[] myArray;
int lastPos = myArray.length();
What is the problem?
