how to solve the problem in java using arraylist or array
Sort game - how to solve the pblm
this problem is very simple using interface
just implement the comparable interface and write the compareTo method to sort according to given condition
so just try to search and learn comparable interface
initially it seems to very difficult but believe me when you write it twice or thrice
it will be very simple to u
and it is very important becoz later it will be used very frequently
hope this will help u
pls rate my work so that i can improve my work