Got String= "100 600" and want to get out (length of first number not const

Ive got String= "100 600" and want to get out
the value 600 into int.
Length of first number is not const : it can be 100 or 3000
How can how do it ?
10x for the help

It would depend on the format of your string. If you can gurantee that the format will always be "number number" then you can use the StringTokenizer to split the two numbers and take the second one. The code would look similar to this:
String s = "100 600";
StringTokenizer st = new StringTokenizer(s, " ");
//--- This "scrolls" past the first number.
st.nextToken();
String num = st.nextToken();
The variable num will always have the second number.
Hope this helps.

Similar Messages

  • HT201272 Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes acc

    Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes account.

    Hello there, Capricious13.
    There are great pointers in the following Knowledge Base article. Depending on where you see the content and where you want to get it to, this should guide you to putting it in the right place:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I recently got a MacBook Air and want to transfer my itunes library over from my PC to my Mac.

    My family has 1 computer where everyone but me syncs all their devices, I had a PC and had my own library but all on one account. I recently got a MacBook Air and want to get my library from my PC onto my Mac. I tried getting it from icloud but instead I got everyones music all together and none of my playlists where there. How to In get my library onto my Mac without adding the entire icloud library?

    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527 - a somewhat bewildering and not always easily understandable set of options.
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the iTunes Library.itl file in the moved iTunes folder.
    For the record there's this reference for iTunes 11 but it really doesn't strike me as having the specifics you need. iTunes 11 for Mac: Move your library to another computer - http://support.apple.com/kb/PH12168

  • I lost my iphone and wanted to get my picture of my icloud how do i got about getting them please help

    I lost my iPhone and wanted to get my back up pictures off my cloud how do I get them

    you would need to restore your icloud backup to another iphone.   Back up and restore your iPhone, iPad, or iPod touch with iCloud or iTunes

  • My old laptop crashed, and took my iTunes account with it.  I got a new laptop, and want to sync my iTouch to my new iTunes account.  It gives me an error message stating that I can't sync to multiple iTunes accounts, but I can't access my old one!  Help!

    My old laptop crashed, and took my iTunes account with it.  I got a new laptop, and want to sync my iTouch to iTunes.  It gives me an error message stating that I can't sync to multiple iTunes accounts, but I can't access my old one! 
    How can I get my new iTunes account to allow me to Sync my iTouch?  The only option it gives me is to "transfer purchases" from my iTouch to iTunes, but that is only about 25% of my iTunes library-most of it is CDs I have uploaded.  How can I Sync without losing all my music from my iTouch???
    Also, I have lectures and photos, etc. on my iTouch that I don't want to lose.
    I've tried a few of the iPod copy programs-the free ones and the ones you have to pay for, but I can't find one that will work for ALL my content on an iTouch.
    Right now, I can't get anything from my iTouch to iTunes, and I can't update my iTouch with my new iTunes purchases, so I'm stuck!  Help!

    Also-I tried to use my backup hard drive, but I wasn't able to drag/transfer/send/move any of my muic files onto my iTouch when the iTouch was connected to my computer.  I can't figure out why it won't let me do that. 
    The only thing I can see when I open my iTouch on my computer is my file with photos.  I can't see videos, music, or anything else.  What's going on?

  • I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    The Early 2006 model 1,1 Core Duo can only run a maximum of 10.6 Snow Leopard. The models Late 2006 Core 2 Duos 2,1 through Early 2008 4,1 can only run a maximum of 10.7 Lion. The Late 2008 model 5,1 Aluminum Unibody through the Mid 2010 White Unibody model 7,1 can run 10.8 Mountain Lion.
    To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up check the Model Identifier and post it back here.
    The Snow Leopard 10.6 DVD should still be available from Apple for $20. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775 to purchase it. It may still be in the Legacy Products list.
    If they no longer have any in stock you will have to buy it from eBay or Apple resellers that still have stock. But you will have to pay a premium since the DVDs are no longer being made. Snow Leopard DVDs are already up to $100 on Amazon.
    http://www.ebay.com/sch/i.html?_nkw=10.6+snow+leopard&_sacat=0&_odkw=mac+os+10.6 &_osacat=0
    Once you are at 10.6.8 Lion is still available from Apple. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775. to purchase it. Then within 3 days you will get an email with a code which you can use to download Lion from the App Store.  The price is still $29. You must have at least a model 2,1 MacBook.
    Lion will require at least 2gb of RAM but really needs 4gb to run smoothly.
    As for third party programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
    Also Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors in 2006 they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.

  • Got a new computer and want to instal pse 7 - have original disk but misplaced serial # - what to do

    got a new computer and want to instal pse 7 - have original disk but misplaced serial # - what to do

    If you ever registered it with adobe, you can get your serial number by going to the main page of adobe.com and looking for My Adobe. Work through the links there and you can retrieve your serial number from your adobe store account.

  • I water damaged my iPhone and want to get my photos back. My iPhone was ios7 but my icloud synced to my work ipad on ios8. Is it now impossible to view any data from ios7 on icloud drive? Any help to get my photos back please!

    I damaged my iphone 5s and want to get my photos back. It was submerged in water for a good five minutes (and is now in rice) but I'm pretty sure it's dead.
    I really would like to get my photos back. I wasn't plugging in my iphone and backing up, I just assumed it did it automatically because about a week ago I had a message saying automatic backups were stopping as my icloud was full.
    My work ipad is running on ios8 (as of a few days ago!) but my iphone was on ios7 as I didnt have enough space to install the update. This means that my icloud is now icloud drive and I cannot view the stuff from my ios7 device without upgrading it to ios8. Trouble is, I cant upgrade it because it's in a rice bowl.
    Any help would be greatly appreciated! Any idea if I will be able to access my photos on icloud at all? I'm not very hopeful for my phone working again and downloading things that way!
    Thanks!

    Photos that are in the cloud stay there until they are removed by a device that has the right privileges. If your iPad is logged in with the same AppleID, then doesn't it show the photos from iCloud?
    You will only be on iCloud Drive if you expressly chose to upgrade.

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • Would Like to Get Report of Daily Emails In and Out from Members to a DL Exchange version : 2007 I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity is it possible ?

    Would Like to Get Report of Daily Emails In and Out from Members to a DL
    Exchange version : 2007
    I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity
    is it possible ?

    Well, distribution groups don't really have a concept of "in" or "out". They only serve to distribute messages sent to them -- unless you're asking to know who was a member of the distribution group at the time a message was sent to the DL.
    Message tracking logs hold the information you want, though. You'd have to look for EXPAND events that reference the distribution group and take the sender's e-mail address from that event. If the DL is a simple one that's not a member of any other groups
    you could also look for RECEIVE events sent to the e-mail address of the group and get the sender's name from that event.
    You can use Powershell extract the rows of data from the logs, but you'll have to write the code to get the data out of those rows and into a format you want. Perhaps LogParser could be useful in place of Powershell?
    --- Rich Matheisen MCSE&I, Exchange MVP

  • I have two Apple ID's and want to get rid of one.  How is that done?

    I have 2 Apple ID's and want to get rid of one?  How do you do that?

    Stop using it.
    Accounts cannot be merged, purchases made under an account cannot be transferred to another account.

  • I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    Yes

  • I have an ipad 2 and want to get a wireless keyboard so my daughter can practice typing? can you get them for ipad 2?

    i have an ipad 2 and want to get a wireless keyboard so my daughter can practice typing? can you get them for ipad 2?

    Yes, there are lots of Bluetooth keyboards available for the iPad 2. Logitech and Zagg have several.

  • I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    First, back up your old iphone manually:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your phone without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your old phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the phone for the first time.
    About backups and what's saved: http://support.apple.com/kb/HT1766
    How to back up and restore: http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    After that, connect your new phone and let iTunes set it up. iTunes will detect the old 3G backup and ask you, if you want to use it to restore the info on your new iphone. If you agree, all settings and data will be present after the process is finished.
    This is also explained in this article: http://support.apple.com/kb/HT4137

Maybe you are looking for