Paul Clapham wrote:Well, yeah. The comparator is written to assume it's going to be given arrays to compare, or what you call "regular arrays". But an ArrayList isn't an array of any kind, despite its name, hence the error message.
Paul Clapham wrote:I'm sorry, I don't understand that question. The first column of what?
Steve Dyke wrote:I picture the ArrayList<ArrayList<String>> as having elements separated by commas with each iteration of the first ArrayList as being the row. So I would like to re-arange the rows based on the first string of each element.
The strings should be as:
862356-401, Seat Assy
854698-41, Bracket
859365-1, Angle
So I want to sort these strings in asending order by the part number.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Steve Dyke wrote:
Paul Clapham wrote:I'm sorry, I don't understand that question. The first column of what?
I picture the ArrayList<ArrayList<String>>
Steve Dyke wrote:
Paul Clapham wrote:I'm sorry, I don't understand that question. The first column of what?
I picture the ArrayList<ArrayList<String>> as having elements separated by commas with each iteration of the first ArrayList as being the row. So I would like to re-arange the rows based on the first string of each element.
The strings should be as:
862356-401, Seat Assy
854698-41, Bracket
859365-1, Angle
So I want to sort these strings in asending order by the part number.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |