Joane Dewhurst
Friday, August 12, 2011
How to sort a Java 2 dimensional array?
What's simpler conceptually but involves a lot more coding is the define and array to hold the sum of the hours for each employee. Then sort this array and, when you need to swap 2 employee's positions, swap all the elements of the 2 dim array.
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment