Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class comp implements Comparator<String>
- {
- public int compare(Printing print1, Printing print2)
- {
- String title1 = print1.getTitle();
- String title2 = print2.getTitle();
- return title1.compareTo(title2);
- }
- public int compare(String o1, String o2) {
- // TODO Auto-generated method stub
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement