Array manipulation:
int[][] twoDim = {{1,2}, {3,4}}; // define and give some values
int[] oneDim = twoDim[0]; // copy first row to save
twoDim[0] = twoDim[1]; ...
Type: Posts; User: Norm
Array manipulation:
int[][] twoDim = {{1,2}, {3,4}}; // define and give some values
int[] oneDim = twoDim[0]; // copy first row to save
twoDim[0] = twoDim[1]; ...
So the the sortBySimpleInterest() method is named the sortBySimple()?
The formatting on that posted code is poor. Statements nested inside of {} should be indented 3-4 spaces. Poor formatting...
It would be sorted by the row based on the contents of the first column?
Where is the sortBySimpleInterest() method? I don't find it in the posted code.
How do you want to order the contents of the 2 dim array? By row depending on the contents of a specific column?
Can you give an example of a small unsorted array and what it would be after...