Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void sortMatrix(SparseMatrix matrix2Sort){
- // Iterate through rows in matrix
- for (ArrayList<Entry> row : matrix2Sort.entries) {
- // If the row is not null we sort it in order of column.
- if (row != null){
- Collections.sort(row, new entryColumnComparator());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement