Not sure how to work this

I have a problem that im not sure how to solve.
Basically, i need to use a StringTokenizer to split up a list of names into individual strings and them put them into a collection of some sort.
Then, I need to sort the strings into alphabetical order from A-Z so I can put them in a JList in order.
I really dont know how to go about this.
Reading the strings into the collection is fine but after that i dunno.
I know that String has a method where you can extract an individual char so i thought maybe iterate through the collection and take out the first char...maybe somehow use it as a condition to check other strings or something i dunno.
I dont really have a time limit on this as its just part of a week program im working on, but any ideas or suggestions might help.
Thanks in advance guys.

Which part are you stuck on? It was a little hard to tell. From what I read, it looks like you just don't know how to sort the Strings once you've put everything in the collection. You should be able to simple call:Collections.sort(yourStringCollection);To sort the list.

Similar Messages

  • I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it will not turn on, can someone give me some solutions as to how I can get it to work?

    I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it won't turn on, can someone give me some solutions I can use to fix this problem???

    Try this website. Yes its sprint but it might help you. http://support.sprint.com/support/article/Troubleshoot_issues_related_to_your_Sa msung_Galaxy_S_II_not_turning_on_completely/WTroubleshootingGuide_542_GKB51165-T rend?INTNAV=SU:DP:OV:TSIS:SamsungGalaxySIi-AsYouGo:TroubleshootIssuesRelatedToYo urSamsungG

  • I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this.

    I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this. I only have the one Apple ID and the phone is brand new, purchased directly from Apple.
    When I check on the phone itself (iCloud and App Store settings) the Apple ID is correct. I'm not sure where else to check.
    Whilst setting up the phone, it prompted me to register, which I did. Then when connecting to my laptop through iTunes it prompted me again so I registered again. I even got a confirmation email to the email address associated with my Apple ID that the registration was successful.
    How can I add my iPhone 5s to the list of devices on the correct Apple ID?
    Thanks in advance for any advice.

    Found the answer to my question after posting (in related discussions)
    https://discussions.apple.com/message/12331666#12331666
    Will call Apple Care as soon as I can.

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Sync session failed to start on my ipod touch. tried to delete back up history but it only shows my daughters ipod touch and not mine! Im unable to update or purchase new aps, not sure how to fix this problem?

    sync session has failed to start on my ipod touch. Tried to delete the back up but it only shows my daughters ipod touch. Iam unable to update or purchase new aps, not sure how to fix this problem?

    Try:
    https://discussions.apple.com/thread/3415227?start=0&tstart=0
    https://discussions.apple.com/message/16400530#16400530

  • Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Hi jodilynnf,
    When using Connection Doctor to see what is could be causing the issue, look for the red dots to let you know what is wrong. Then all you have to do is correct that information. You can double click on the section that is giving you issue and it will take you there. Most issues could be just password being entered incorrectly. Take a look at the article below to walk you through troubleshooting issues with Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/en-us/TS3276
     Take it easy,
    -Norm G.

  • My mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    my mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    What does the Mail Connection Doctor return?
    The link in my first replay included :
    If you still can’t send or receive email
    Mail Connection Doctor may be able to tell you more about the issue.

  • I'm not sure how to fix this problem?

    I made my original Apple ID a long time ago, and basically, the e-mail account I had used it with was deleted.  I've made a new Apple ID since.  My i-pod is still connected to the old ID, and I'm not sure how to change it.  I also don't remember the information I had used for the original ID.  My i-pod won't transfer all of my music unless I "authorize the computer" and I can't do that with my new ID becuause it "hasn't been used with the computer" yet.  I have no idea what to do now.  Please help?

    Instead of posting this just hit options to the right off any post and scroll down to Report Abuse, select that and leave a message there.I know it's not abuse but it works when you want to report any posts.
    Message Edited by grayburn on 04-Aug-2009 02:06 PM
    Grayburn @ www.nokiausers.net & www.dailymobile.se....come say Hello!!!
    If you appreciate ANY help from a member,then show it by clicking on the Blue Star button, cheers

  • TS4058 i  not  sure  how  to  work the  computer

    I tried  to  sign  in  on  chatt  but  every  time  I do  it  keep  saying  I  am  signing  in the  wrong  [pass  word   ND  EMAIL  ADDRESS  NOT  SURE  HOW  TO  CHANGE  IT  CAN  YOU  HELP 

    Hi,
    It would help to know which OS on your Mac you are running as this will tell  me which version of iChat you are using.
    iChat can use AIM names
    It can uses certain Apple IDs issued by Apple as Valid Screen Names if the password is kept to 16 characters or less as this is the AIM Server limit.
    These are @mac.com name and @Me.com names.
    @me.com names from iCloud will only work in iChat 6 and Messages (Lion and Mountain Lion)
    iChat 4 and later iChat 5 had button to "Get an iChat Account"
    Where the Button led you to depended on which Option you selected in the Drop down.
    Soon after iChat 5 came out AIM moved their Login page so the link there did not work.
    With MobileMe ending Apple closed the link to the @Mac.com (free) Registration page.
    Recently (since June 30th and the end on MobileMe last paid for period) this page has also gone.
    11:04 PM      Wednesday; August 29, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Math functions not sure how to work with them

    Im trying to work out the math functions into my program, but I'm not sure where is the mistake. This is what I have now:
    (a) y = ax^2 + bc + c
    (b) y = a*sin(x) + b*cos(x) + cx);Especially I'm not sure how to format the sin and cos functions
    Thanks !

    jordan755 wrote:
    Im trying to work out the math functions into my program, but I'm not sure where is the mistake. This is what I have now:
    (a) y = ax^2 + bc + c
    (b) y = a*sin(x) + b*cos(x) + cx);
    Java != algebra.
    (a) says: Take the variable called 'ax', perform a bitwise XOR on its value with the number 2, add that result to the value of the variable 'bc', add that result to the variable 'c' and put the result in variable 'y'.
    (b) is trying to call sin() and cos() methods defined in the current class and add the to variable cx.
    In your other thread, you had variable names 'keyboard' and 'character'. Given that, why would you expect 'bc' to mean "b times c" rather than "variable named 'bc'"? If you want multiplication, you have to use the multiply operator, ***.
    If you want to call a method that's defined outside your current class, you have to use the class name or a reference to an object of that class. The methods sin and cos are defined in the Math class. I advise you to read their docs before using them.

  • Not sure how to ask this; iPhone 5 carrier unlocked but question about refurb iPhone 5

    Ok, so. Sorry if the tittle is a bit confusing, im not really sure how to even word it myself.
    The short; I had some issues with AT&T at the begining of the year so i left them and had them unlock my iPhone 5 so i could use it with T-Mobile. But now im having this issue with my iPhone 5 were the home buton is a bit unresponsive sometimes. It started as it feeling a bit loose and making a clicking sound when slightly taped. I did go to the Apple store when it first started happening and they said it wasnt a big issue, that some did this, basicaly saying "Its normal dont worry about it." I said ok and went on my way.
    Now, when i had an unresponsive home button on my old iPhone 4 with AT&T all the Apple store did was give me a refurb. Ok, no issues, pop sim out of old iPhone, put in refurb iPhone, everything works fine.
    But, my question is; if they give me a refurb iPhone 5, how would the whole process work seeing as i had my current iPhone 5 unlocked by AT&T vs. buying it unlocked from Apple and im using it on a different network other then what i bought for?
    Sorry if its all a bit confusing, like i said, im not even sure how to word some of this.

    An exchange under warranty can be a new or refurbished iPhone with no way to tell the difference. An exchange under warranty if new or refurbished is called a service unit and is provided in a plain unsealed box with the iPhone only.
    Apple should have on record that your iPhone 5 is officially unlocked since the unlocking was done by Apple with iTunes after Apple was notified by AT&T that unlocking your iPhone was authorized by AT&T.
    Make sure this information is on record by Apple before the iPhone is exchanged if Apple determines the iPhone needs to be exchanged under warranty.

  • I'm not sure how to explain this but PLEASE HELP! ...

    okay so I'm not quite sure if anyone is going to understand what I'm talking about...
    But for some reason when someone adds me to skype (sends me a request) it says "Hi, White Asian!... so and so wants to add you.. blahblah etc." It says something other than my current user name, or my current display name, or my first and last name. I have know idea why it says this. I've had skype for a long time now and several years ago I believe that I changed my display name to "White Asian" as a joke. It hasn't been that for a long time now and I have no idea why it shows up like that when someone sends me a request on skype. I've tried changing every possible thing to do with a name in the profile/user settings to no avail. THe only time it shows up (that I'm aware of) is when someone adds me.
    So if you have any idea how I can fix this or why it's happening please let me know immediately!
    Its driving me mad because I don't know how to fix this!
    Thanks!
    Attachments:
    Untitled.png ‏11 KB

    Try this website. Yes its sprint but it might help you. http://support.sprint.com/support/article/Troubleshoot_issues_related_to_your_Sa msung_Galaxy_S_II_not_turning_on_completely/WTroubleshootingGuide_542_GKB51165-T rend?INTNAV=SU:DP:OV:TSIS:SamsungGalaxySIi-AsYouGo:TroubleshootIssuesRelatedToYo urSamsungG

  • New to DW, not sure how to do this . . .

    Hi!
    I'm quite new at this and am wondering how to do something. I
    tried to look for it, but didn't know what it's called or referred
    to as.
    On a page, I have an image and then two thumbnail images
    below it, each a different version of the main image. What I want
    to be able to do is, when a thumbnail is clicked, I want the larger
    size of it to show as the main image (and maybe have the original
    in the spot of the clicked thumbnail).
    I'm not sure if I am making any sense, but I hope I am!
    Can anyone offer a bit of advice on how to do this?
    THANKS!!

    whoops! The finger is faster than the eye... no, wait....
    Jo
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Read my post again. 8)
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "josie1one" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> Giigle vs. Google
    >> or as Steve says, "Only returns links to joke
    websites"
    >>
    >> --
    >> Jo
    >>
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Competion?
    >>>
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>> ==================
    >>>
    >>>
    >>> "josie1one" <[email protected]>
    wrote in message
    >>> news:[email protected]...
    >>>>> Giigle search.
    >>>>
    >>>> Aha! Competion for Google (o:
    >>>>
    >>>> --
    >>>> Jo
    >>>>
    >>>>
    >>>>
    >>>> "Steve Fleischer" <[email protected]>
    wrote in message
    >>>>
    news:[email protected]...
    >>>>> On Fri, 12 Oct 2007 01:33:14 +0000
    (UTC), "pklich"
    >>>>> <[email protected]>
    wrote:
    >>>>>
    >>>>>>Hi!
    >>>>>> I'm quite new at this and am
    wondering how to do something. I tried
    >>>>>> to look
    >>>>>>for it, but didn't know what it's
    called or referred to as.
    >>>>>> On a page, I have an image and then
    two thumbnail images below it,
    >>>>>> each a
    >>>>>>different version of the main image.
    What I want to be able to do is,
    >>>>>>when a
    >>>>>>thumbnail is clicked, I want the
    larger size of it to show as the main
    >>>>>>image
    >>>>>>(and maybe have the original in the
    spot of the clicked thumbnail).
    >>>>>> I'm not sure if I am making any
    sense, but I hope I am!
    >>>>>> Can anyone offer a bit of advice on
    how to do this?
    >>>>>> THANKS!!
    >>>>>>
    >>>>> It's called a disjointed rollover - lots
    of tutorials via a Giigle
    >>>>> search.
    >>>>> --
    >>>>> Steve Fleischer
    >>>>> steve at flyingtigerwebdesign dot com
    >>>>> Hong Kong
    >>>>
    >>>>
    >>>
    >>
    >>
    >

  • Not sure how to ask this

    not sure what a title would be for this but anyway,
    I write a lot of programs for clients, i use a table system to input the exercise name, picture information and about 3 other columns.
    my qeustion is, in one of the columns I have a description of how to do the exercise. Instead of writing this description out every single time for every new program, is there a way to have that cell of the table reference a generic file that I have, that will automatically input the information for that exercise into the table cell? and this is before printing, most of the times I will convert to a pdf and then email the program to the client.
    any info on how to do this would be great
    regards
    bret

    I write a lot of programs for clients, i use a table system to input the exercise name, picture information and about 3 other columns.
    my qeustion is, in one of the columns I have a description of how to do the exercise. Instead of writing this description out every single time for every new program, is there a way to have that cell of the table reference a generic file that I have, that will automatically input the information for that exercise into the table cell? and this is before printing, most of the times I will convert to a pdf and then email the program to the client.
    Hi Bret,
    You could use the text clippings feature of the Mac OS. Select the text you want to keep (I chose your second paragraph above), then drag it to the desktop. It will be saved to the Desktop as a clipping, with a name generated from the first few words of the text.
    Once saved, you can rename the file, and move it to a folder where you keep clipping on this topic.
    To use the clipping, select the file and drag it into the document where you want to use it. For the example, I've renamed the file as shown:
    Then dragged that file into a Pages document, on the line after the words "File here".
    If you have several pieces of boiler plate like this, place them into a folder after renaming each to say what it contains,
    regards,
    Barry

  • When I turn on my iMac, it shows a black screen and says 'No bootable device - enter boot cd and press any key'.  Not sure how to fix this.

    When I turn on my iMac, it shows a black screen and says 'No bootable device - enter boot cd and press any key'.
    I'm not sure what to do, I did not recieve a cd with my mac to boot it up (I ordered it online).
    Also I can't find my harware serial number (I've tried many times to input what I thought it may be from my receipt).  I saw that I need this number to contact apple support, my 90 day complimentary support is still valid so I wish to contact them.
    I don't know much about apple products as this is my first apple computer so any information is helpful.

    Hold down the Alt/Option-key at startup of your iMac to get the Boot Selection screen.
    From that choose to boot into OSX.
    Once in OSX go to System Preferences then Startup Volume and reset your OSX to be the default.
    The new iMacs have OSX 10.7 Lion preinstalled and don't come with any CD/DVD anymore.
    Instead OSX Lion includes a new feature called "Lion Recovery".
    Have a read here About Lion Recovery
    Stefan

Maybe you are looking for

  • New table contains data after Successful activation

    HI All, one DSO activation got failed due to red request which was present in the target. We repeated the DSO Activation step once we deleted the bad request from DSO and it got completed successfully. Generally, as part of ODS Activation, the data w

  • How can you tell your iPhone 5s has been unlocked?

    Is there anyway to tell from the Settings menu on the iPhone or from a menu in iTunes that the phone has been unlocked. My wireless carrier has allowed me to unlock my phone because I will be spending an extended period of time in another country. Le

  • Problm in dynamic text field when i view it in IE

    Hi i have used dynamic text field for UI Lebels, text is comming from xml file.i have TextFormat as well . when i publish and see out put in swf file it is looking good and all the text in the same place where i have placed it. but if i see it in IE

  • How can i restore mac back to factory

    I want to restore my mac back to factory settings.  How can I do it?  Thanks

  • Z Number range objects in ECC 6.0

    Dear SMRer's, System Info: SRM 5.0 and ECC 6.0 I created some Z number range objects for eforms in ECC 6.0. And all of them went in to the same transport request DXXXXXXX . I just wanted to confirm if it is the right way to do it. Also, if some one c