Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public void sortMatrix(SparseMatrix matrix2Sort){
  2. // Iterate through rows in matrix
  3. for (ArrayList<Entry> row : matrix2Sort.entries) {
  4. // If the row is not null we sort it in order of column.
  5. if (row != null){
  6. Collections.sort(row, new entryColumnComparator());
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement