 Thread Author
# 1

11-17-2010, 08:52 AM
|
| CrackBerry Newbie | | Join Date: Sep 2010 Posts: 9 Likes Received: 0
Thanked 0 Times in 0 Posts
| |
blackberry sorting
HEllo All, I am successfully able to read and print the contents of a text file. My text file contains 5 data entries such as 1.Rashmi 120 2.Prema 900 and so on. It must sort only the integers in descending order and swap the respective names attached to them. the first column of serial number must remain the same.each time a new entry is made that score must be compared to the existing 5 records and placed accordingly with new name and score. Since this is blackberry programming and blackberry APIs dont support collections.sort,please tell me how do I do this.I tried vectors.simplesortingvector but I am unable to put it into coding form. Can anybody please give me a sample program implementing this? I know the logic but finding difficulty in programming
|