• Post Reply Bookmark Topic Watch Topic
  • New Topic

sort(int[], int, int) in the type Arrays is not applicable for arguments (int[], Comparator<Object>)  RSS feed

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help to fix this compile error with JDK 1.6.0_5:
The method sort(int[], int, int) in the type Arrays is not applicable for the arguments (int[], Comparator<Object>) JTableTest/src SortableTableModelAbstractTableModel.java line 86 1301073192433 214167
 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Arrays.sort() method you call at line 86 doesn't take two arguments, it takes either one or three. Look at the java.util.Arrays class api.


Hunter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!