Can't get an array of characters from a string!

If I have a string eg "Hello World", how do I get an array containing the characters eg. [H,e,l,l,o, ,W,o,r,l,d]
Can any one help me please?

Or to get the chars you want from a String object you can do this:
String helloString = new String("Hello World");
char[] helloArray = helloString.toCharArray();

Similar Messages

  • How can I get the last 18 numbers from this string

    Hi,
    I'm querying this field from a table. How can I only get the last 18 numbers:
    The numbers look like this:
    500000000818118

    If it is always the last 18 numbers just use the Right() function.  Examples:
    Right("500000000818118", 18)
    or
    <cfset mystring = "500000000818118">
    <cfset mynewstring = Right(mystring, 18)>
    or
    #Right(yourquerycolumn, 18)#
    etc.
    Edit:
    Well I just noticed that your example string is only 15 characters long.  Perhaps I mis-understood your question?
    Message was edited by: Miguel-F

  • How can i get a array from a JSP ?

    Hi all,
    i have a STORED PROCEDURE like this:
    static public void getMyArray(double [] xx) {
    for (int i=0; i<myarr.length;i++){
    myarr=3.145*i;
    xx=myarr;
    return ;
    how can i get the array with XSQL and transform with a XSL ?
    Is this at all possible?
    Thanks for any help.
    Achim

    u r asking how ca u get array from jsp?
    and u r asking xsql ...some stuff i couldnot understand .can u repeat the question properly?
    null

  • I have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    i have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to put everything back.
    If you have failed to bakup, then you can transfer itunes purchases from an ipod: File>Transfer Purchases

  • When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • Can access Apple TV via airplay, but can't get to internet or iMac from Apple TV

    Can access Apple TV via airplay, but can't get to internet or iMac from Apple TV. Whenever I try to put my info in it says to try later. When I test network it says network time has not been set. It has worked previously.

    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.
    If you are still having problems, the following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.
    When making adjustments to your network for better optimisation, you may find some of the points mentioned on this page helpful.

  • My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    I use my iPad to get the address book backed up by iCloud from my iPhone. However, I cannot see the recent new contacts from my iPad. Is there anyway to check the iCloud server to see if my address book backup from my iPhone is still there?

  • I wiped my ipod classic and then my computer crashed, so i no longer have the songs i purchsed from itunes on my ipod or computer! I have a new computer now with itunes installed, can I get the songs purchased previously from itunes somehow?

    I wiped my ipod classic and then my computer crashed, so i no longer have the songs i purchsed from itunes on my ipod or computer! I have a new computer now with itunes installed, can I get the songs purchased previously from itunes somehow?

    Yes, you can!(:
    STEP 1: Open iTunes
    STEP 2: Navigate to the "iTunes Store". It can be found under the "STORE" tab.
    STEP 3: On the right side of the store there should be a "Quick Links" Section. Click on the "Purchased" link.
    STEP 4: Navigate to the "Music" tab and click on "All Songs". Then at the bottom of the screen there will be a button that says "Download All". Click the button and your songs will be begin downloading!
    NOTE: This will only work with songs that you bought from the iTunes store, if you imported them from a CD, you will have to do it again.
    NOTE: You can also do this with Apps, Movies, TV Shows, and Books.
    NOTE: You may have to sign in with your Apple ID to verify the download.
    Hope this helped! Enjoy your music!(:

  • HT201269 Can you get your previously purchased ringtones from itunes back when you switch to a new device?

    Can you get your previously purchased ringtones from itunes back when you switch to a new device?

    Try here:
    iTunes: Error 13019 during sync

  • I have photoshop cs3 on a mac powerbook running Os 10.10.2  I am getting a" licensing has stopped working" text box.   I can reinstall because I can't get a copy of CS3 from eh website

    I have photoshop cs3 on a mac powerbook running Os 10.10.2  I am getting a" licensing has stopped working" text box.   I can reinstall because I can't get a copy of CS3 from eh website

    https://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3 | 2.7(win),2.7(mac)
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

  • I have an airport extreme which doesn't come with a straight audio jack on it like the express. Can I get a converter to go from the dual speaker plugs to usb on the extreme?

    I have an airport extreme which doesn't come with a straight audio jack on it like the express does. Can I get a converter to go from the dual speaker plugs to usb on the extreme?

    Sorry, but no. The only Apple router with an audio output jack is the AirPort Express.

  • Where can I get an apple iMac G4 from for around £150? England

    Where can I get an apple iMac G4 from for around £150? England

    You could also try here:
    http://www.macbooty.com/imac.php

  • I can't get photoshop CS6 to import from my HP scanjet 5590?

    I can't get photoshop CS6 to import from my HP scanjet 5590? I have tried plug ins, and reinstally scanner software but it only recognizes my main scanner/printer!

    Hello & Welcome to the forums,
    but it only recognizes my main scanner/printer!
    Does this mean your HP Scanjet 5590 is a 2nd scanner you have on your computer?
    Are you able to scan with 5590 on a different application? Is it only Photoshop that is giving you this problem?
    Please let us know details about your operating system and its version too.
    Do tell us how you're trying to 'import' pictures from your 5590 scanner.

  • How can i get my i5 unlocked brought from Dubai(middle east), Now i want to use it in Pakistan(Asia)

    How can i get my i5 unlocked brought from Dubai(middle east), Now i want to use it in Pakistan(Asia).
    <Perosnal information removed by Host>

    As stated, only the original Cellular provider can unlock the phone. If they charge $250 for doing so, that is their decision. It is YOUR decision to pay that fee or not.

  • How can I get my Aperture library back from the Photos application?

    As stated above, How can I get my Aperture library back from the Photos application?  I'm not a fan of Photos right now and haven't used iPhoto in years, so that wasn't a loss... I didn't realize when I gave Photo's access to my Aperture library, I was going to lose it...
    I want to get it back, any suggestions?
    Thanks again!
    MacTeacherMN

    what means ..."Once you open the Aperture library back into Aperture..."? What do I need to "klick" in order to getting back my old Aperture Project structure....

Maybe you are looking for