You are viewing a single comment's thread. Return to all comments →
You do not need to pass the size. Instead you can call the length property of the array to get the size
int[] mArray = new int[5]; //declaraion
int aSize = mArray.length; //this assigns the size of the array to the variable aSize.
Seems like cookies are disabled on this browser, please enable them to open this website
Quicksort 2 - Sorting
You are viewing a single comment's thread. Return to all comments →
You do not need to pass the size. Instead you can call the length property of the array to get the size
int[] mArray = new int[5]; //declaraion
int aSize = mArray.length; //this assigns the size of the array to the variable aSize.