in collection class,TreeSet class is there,which avoid dupulicatevalue and also it will arrage the datas in ascending order..so last number is greatest number,and prvious one is 2nd greatest number
note:which class implements set interface always has the above properties
thanks & regards,
seetharaman
kavitha vasu
Ranch Hand
Joined: Feb 22, 2007
Posts: 70
posted
0
Hi
Here i have to find the which is duplicate number and that should be printed on screen.