Sorting a Vector.Can some one help please?

Folks,
How do I sort the elements in a Vector?
If I have a vector containing different names,
how can sort this out in ascending order?
Please can any one send in a small example that I can
modify to suit my requirments.
Thanks
Ajay

u can only sort objects which implements the Comparable interface. the compareTo() method compares between 2 objects and returns a integer ranging from -1 to 1. -1 means smaller, 0 means equal and 1 means greater.
you just have to follow your sorting algorithm, no extra changes needed. most classes implement the Comparable interface. if they dont, you can implement the interface yourself and override the compareTo() method.

Similar Messages

  • When I receive email from friends it sometimes comes in with very small print, also attachments also attachments from those emails are in tiny print. Others are fine. Can some one help, please??

    can some one please help me change the font size for incoming emails? some emails are fine others are very small and I cannot change them to read or print?

    Welcome Margaret!
    How are you reading e-mail? in a browser (like Safari) or with a separate mail program like Apple Mail or MS Entourage?
    Entourage and Mail have  'larger/smaller" text commands. In either, typing command + or command - will zoom or shrink the text.
    The same commands work in the Safari browser.
    Much of this comes from people with small-screen devices sending to people with really large screens. I have a friend who asks all his contacts to use a larger font than default when they e-mail him. He has a really cantankerous Windows box that will not let him increase font size in received messages.
    If you have a 27-inch iMac the huge amount of screen real estate may make a lot of text hard to read. That's what I have, and I set the desktop resolution to a smaller number to get larger text. My 27-incher defaults to 2560x1440 and everything is small to my old eyes. I changed it to 1920x1080 and lost none of the sharpness but gained a lot in font size.
    If you want to try this, go to System Preferences > Displays and make sure the "Displays", not "Color" tab is active. Click the round button next to "Scaled" and you'll be offered a selection of desktop resolutions.
    Please let me know if I confused the issue!
    A

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

  • HT201232 itunes will not recognise my device iphone 5s, pls can some one help???

    itunes will not recognise my device iphone 5s, pls can some one help???

    Hello Tantoh,
    Welcome to the Apple Support Communities!
    I understand that your iPhone is not being recognized by iTunes when you connect it. To help resolve this situation, please read over and work through the steps outlined in the attached article. 
    If you don't see your connected device in iTunes for Mac - Apple Support
    Have a great day,
    Joe

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    Depending on what your needs are, you may use Pages included in iWork or purchase it separately (usually there is an evaluation copy with any new mac, I guess) or try other publishing apps. I once used MS Publisher, I remember it was something like a more sophisticated word processor, right?
    You may try the cheaper DTP iCalamus or Word for mac.

  • I keep gettinf this error message can some one help!!!

    I keep getting an error -50 when i try to display teh album artwork on my ipod can some one help me please

    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.

  • Hi I Jerry Gatlin am having problems downloading my old photoshop cs-5 program can some one help me? 3-29-15..

    Hi can some one Help me download my old photoshop cs-5 program? My computer keeps telling me what program I want to use to download photoshp. 3-29-15...

    You should be able to find it here. It will be a simple save to disk download, no programs needed.
    Download CS5 products

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • I purchased I phone 5 from USA covered under Apple care  . I'm in India now. Wake/sleep button not working. Apple care here have refused to replace or repair it though it is still under international warranty. Feeling harassed. Can some one help.

    I purchased I phone 5 from USA covered under Apple care  . I'm in India now. Wake/sleep button not working. Apple care here have refused to replace or repair it though it is still under international warranty. Feeling harassed. Can some one help.

    Is there an "APPLE STORE" in India or you just went in a reseller store?
    There is a replacement program for sleep/wake button for free. Just look for an Apple Store and make a reservation at Genius Bar.
    I have an iPhone 5, bought in Dubai U.A.E.
    It is a US model (model A1428) which is different of the model use here in Italy/Europe
    My serial number is qualified for battery replacement program.
    I thought the Apple Store wouldn't repair my phone because I bought it from another country , a different model and it is already out of warranty.
    The Apple store's staff just checked if my iPhone's serial number is eligible for the program and he replaced the battery for free today.

  • I have old MacBook running OS 10.6.8 I was told in Apple Genius Bar that I need a code from apple support to upgrade to 10.7.   Apple support will not help because I am have their support plan.  Can some one help?

    I have old MacBook running OS 10.6.8 I was told in Apple Genius Bar that I need a code from apple support to upgrade to 10.7.   Apple support will not help because I am have their support plan.  Can some one help?

    hi Samberl
    thanks a lot for the fast reply.
    I was dragging folders from main folders on the laptop-desktop  onto the external drive icon - to copy them across....
    Your suggestion sounds very promising -  I didn't know about 'cloning'.
    Yes the idea is to backup the laptop -    I thought I would just move it all now, new - and then keep saving/dragging physically   across to the new drive myself each day or two...
    Would this be the sizeof the internal hard drive = c.500 gb  ?   =   under the HD icon on desktop is written  : 
    " 499.76gb , 311.5 gb free  " 
    I can erase and start agin on the new external drive - so this plan is to make two partititions, rather than the one at present, and make one of them 500 gb ?
    I have found CCC [carbon copy cloner] googling - looks good.
    When CCC site says it backs up  the hard drive - would this  mean all my files  [over 100 gb] that are mostly  in folders on the desktop, plus the others in itunes, iphotos etc found in the HD icon,  would all copy across successfully [wherever they are in the computer ]  ?
    thanks again, hope you can clarify these things and then I will go for it. 
    It would be great and amazing if this 'lack of permission' message doesn't show up in the process of doing this ccc transfer - hopeful!
    Julie

  • I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    Hi bibisandoval,
    Thanks for visiting Apple Support Communities.
    If the movie has completely downloaded, I recommend deleting the movie and downloading it again from your list of purchased movies. See this article for the steps:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to play the movie, you can report an issue with this purchase using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Regards,
    Jeremy

Maybe you are looking for

  • FAGL_FC_VAL -problem with KDB and KDF -KDB config is superceding KDF config

    Hello experts, The configuration of account determination for FAGL_FC_VAL is done using the transaction keys KDB and KDF. KDB is used to maintain account determination in case of non OI balance sheet accounts and KDF is used to maintain account deter

  • How do I get internet to work on ibook G3?

    I have an ibook G3. I'm trying to connect to the internet via DSL cable. (I have an airport extreme, but no airport card in my G3, which is why I connect with cable.) When I plug in the ethernet cord, the internet does not work. How do I get my inter

  • Discount Percentage

    Hi how would we add discount percentage in a purchase order for each line item since it differs from one item to another. please help me in this issue regards, senmani.

  • Wi Fi Dongle 600 Install 'Where's the NEXT box'?

    Purchased a BT600 dongle yesterday. I inserted the DVD and followed the instructions- but when I was prompted to hit the NEXT button, I had a problem, becasue there wasn't one! I have seen another post on this subject but it didn't really help much,

  • Language restriction on Text Items.

    Hi, We are developing an application in Oracle 8i & Forms 6i for a Thailand based company. The users will enter data in English as well as Thai language. We have tested the forms that accepts both English & Thai characters in a single text item. The