Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void compare(Student st1, Student st2) {
- // TODO Auto-generated method stub
- if (st1.getImie().compareTo(st2.getImie())>0){
- Student tmp = st1;
- st1 = st2;
- st2 = tmp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment