Another new kid in need of a TINY bit of help.

Hey everybody...
Working on a project just like everybody else.
I need to make a program that reads in a number, and spits it back out in reverse, and line by line. For example.
Input = 12345
Output 5
4
3
2
1
End.
I'm SO close I can feel it..but I'm literally one line of code off..and I know which it is..I've been searching forums and google, but can't seem to get the missing piece..and I know it's something stupid too >.<
If I can be pointed in the right direction, it would be AMAZING. Below is The code I have so far. I know the problem has to do with the "charat" line, because it's an incompatable type (String an int). I just don't know which to do instead...
Can anybody help me out? I'd be very greatful :)
import java.util.Scanner;
public class numberreverser
     public static String extractNextDigit(String passedString)
     {    //thispart is wrong
          int looptime = 5;
          passedString = passedString.charAt(2);
          return passedString;
          looptime--;
     public static void main( String args[] )
               Scanner input = new Scanner( System.in );
               int fivedigit = 0;
               System.out.print("Please imput a 5 digit interger: ");
               fivedigit = input.nextInt();
               String s1 = Integer.toString(fivedigit);
               int loop = 0;
               do
               s1 = extractNextDigit(s1);
               System.out.println(s1);
               loop++;
               while (loop <= 5);
}

Thanks for the help guys...but I still didn't get my question answered XD
The question I had to do was with the bolded line of code
I literally just need to find out what line of code is supposed to be used in place of "charAt", but used the same functionality... Can anybody point me in the right directions? I do a couple things weird here, but It's just the stupid rubric I have :/
import java.util.Scanner;
public class numberreverser
     public static String extractNextDigit(String passedString)
     {    //thispart is wrong
          int looptime = 4;
          passedString = passedString.charAt(looptime);
          return passedString;
          looptime--;
     public static void main( String args[] )
               Scanner input = new Scanner( System.in );
               int fivedigit = 0;
               System.out.print("Please imput a 5 digit interger: ");
               String s1 = input.nextLine();
               int loop = 0;
               do
               s1 = extractNextDigit(s1);
               System.out.println(s1);
               loop++;
               while (loop <= 5);
}

Similar Messages

  • Need a tiny bit of help please!

    Hey guys,
    I have a full set of renders for a character. At this time I
    have a 3 point stand and an 8 point walk motion. Basically 3
    separate images for standing and 8 separate images for walking.
    I want to use AS3 and have the character standing and doing
    the 3 point animation. Then I want to make him walk via user
    control with the 8 walk images.
    To this point I have searched everywhere for a tutorial on
    how to do this but all I end up finding is for artists and how to
    draw the animations. But like I said, I have the animation images,
    I just need to learn how to implement them into flash.
    In the end to learn this, all I want to do is to properly
    encorperate the images into flash so that I can do a test movie and
    have the character doing his stand animation and then when I press
    left or right have him do the walk animation. From there I will go
    onto collision and whatever I feel like learning at that time.
    Right now, just getting a standing animation and a user controlled
    walk would be great.
    Could anybody point me towards a good tutorial on how to do
    this?
    Thanks in advance for any help you can give.

    A lot of the avi files made on Windows machines use variable bit rate mp3 audio, which QT will not play. One workaround is to use this freeware Windows video processor to change the format of the avi audio.
    VirtualDub
    Open the avi in VirtualDub, set the video menu to Direct Stream Copy and set the audio to Full Processor Mode. Then choose either uncompressed audio in the compression item in Audio Menu or IMA audio. Now open the avi and then use Save as Avi in the File menu. The video will be passed through with no change to the new avi but the audio will be changed to the new compression setting. The two compression types I mentioned will play in QT Player with no problem. You will need to have the video codec for the avi in Video for Windows form. If you can play the avi in Windows Media Player you have the right codec already.

  • HT1420 My laptop crashed completely and I need to authorize a new laptop to enable it sync with itunes. I have 5 computers authorized so I am unable to add another one so I need to unauthorize the bad laptop that is no longer working. How do I authorize n

    My laptop crashed completely and I need to authorize a new laptop to enable it sync with itunes. I have 5 computers authorized so I am unable to add another one so I need to unauthorize the bad laptop that is no longer working. How do I authorize new Laptop?

    You can only deauthorize everything to do that. Click on Account under Quick Links. You can deauthorize all five there. But you can only do this once a year.

  • HT3819 i have all my itunes on one computer and have brought another and need to transfure all my exsisting music to this new computer, how do i do this? please help.

    I have all my itunes on one computer and have brought another and need to transfer all my music etc to new one, how do i do this? please help its doing my head in!

    Hey allen72,
    Thanks for the question. I understand you wish to transfer your iTunes library to a new computer. There are a few different options for doing so, the following article provides more information:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Thanks,
    Matt M.

  • My old Dell D830 died. I have another laptop. I need to deactivate my CS5.5 on my new laptop, but how do I deactivate it when I can't access the other PC?

    I now have a HP Elite Book, 8770w 64 bit i7 processor 8GB RAM. The HD died and I wasn't able to deactivate my software. How do I deactivate it so that I can load it on my new laptop.

    You need to contact Adobe support thru chat in order to get an inaccessible installation deactivated.  For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )
    You are allowed to have activated instalations on two machines, so you should be able to install and activate on the new machine without waiting if you cannot wait for the deactivation to be done.

  • Another New IPod Touch Owner with Wi-fi Problems

    Another New IPod Touch Owner with Wi-fi Problems.
    I have been working at this for about 4 hours now with no success and I am getting pretty frustrated, so if it show up in my typing please ignore it. I just don't understand why these multi-million dollar companies can't write a manual or put up a web site that can actually help someone with a problem.
    Ok, venting aside.
    I am running a gateway computer.
    Operating System = XP
    Router = Linksys WRT54G
    I have two other computers that are working fine with the existing wireless net work and have been for some time.
    I'm pretty good with my computer but haven't touched my router since initial set-up and all that was done was a basic set up.
    My I-pod is searching for a network and I'm three feet away from it but it doesn't find it.
    I printed out my wireless setting. I presume SSID name equals the name box on the ipod-touch
    Security = WEP
    What seems to be kicking my A$$ is the password. The route setting have never been changed so I would pesume the password should be the default "admin" which I put in (JOIN) and get the "Could not find network" screen
    So, I have perused this message board trying to discover and answer to mine, and and apparently many others question with no definitive results.
    So I guess what I and everybody else needs is a step by step how to guide on how to discover the info needed and enter in what we need to make this work.
    Thanks in advance to anybody that can actually help with this issue. A step by step do this would be nice.

    Thank you Terpfen for replying, and please excuse my ill temper earlier. I've calmed down some now.
    Step: 1 followed step one previously, Main screen, settings, Wi-Fi. Also set power down to 5 min to give I-Pod plenty of time to find network.
    Wi-Fi Network Screen.
    Wi-Fi ON
    Choose a Network (searching indicator) symbol spinning.
    Other ...
    Ask to Join Networks ON
    At this point the I-pod does not find any networks available. The indicator just spins but never returns any results. I am 3 feet for my WRT54G router.
    Hence the easy connect isn't connecting.
    The next step. is to manually set-up the connection.
    Main screen, setting, Wi-Fi, Other.
    press "Other" which brings up two fields
    Name __________
    Security ___________
    First Question? Which Name are they looking for. when I went to my router 192.168.1.1 It has the name linksys. However, when I go to my Wireless Network setting it has the name * ???? * which is different than Linksys router.
    Now, since one of the goals here is file sharing I presume I should be using the Wireless Network settings name. (which I have tried.)
    Next is security, Wireless Network setting indicate setting for WEP Once this is selected you then back-up to the "Enter Network Setting Screen" and you now have a password line added.
    Now I have never set a password for the router so the password for the router is the default Password "admin" And I don't recall ever setting a password for my network setting. But, I only use about three different passwords and a cycled through them still with no success.
    So, I need some expert advise on how and where to find the info to input into the required field to work or what I need to reset in my router to make this work.
    Thanks again for anyone who has constructive input to resolve my and probably many other peoples issues with this problem.

  • ICloud password works on everything but erasing all data. I got a new iPhone and need to wipe this one but am not sure how else to do this since the password is not working. Any suggestions?

    iCloud password works on everything but erasing all data. I got a new iPhone and need to wipe this one but am not sure how else to do this since the password is not working. Any suggestions?

    Firefox also makes regular backups of your bookmarks in a folder named bookmarkbackups in your personal settings folder. You can restore the backup to your new Firefox, but unlike importing the HTML-format file, it is a complete drop-in replacement, so if you have saved new bookmarks you do not want to lose, the export/import method may work better for you.
    By default, Windows hides your personal settings folder so the easiest way to access it is from inside Firefox. You can use either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This will launch a window showing your Firefox settings files.
    You might want to back up this whole folder if you have other data you want to preserve from your XP computer.
    Either way, you should find the bookmarkbackups folder here and when you click into it, find maybe 10 files with dates in their names.
    The procedure to restore the file once you have it on removable media or some other convenient place is described in this article: [[Restore bookmarks from backup or move them to another computer]].
    Regarding the other files and what you might find of use: [[Recovering important data from an old profile]].

  • How to copy exitsitng extracter into another new extracter?

    Hello,
    Please some one can tel me how to copy the existing  extracter into another new extracter.
    I have requirment as below
    Currect me if i am wrong ,need to enhance the existing extracter and add some new fields,and need to include some masterdata filds also to it.
    For master data i am going to do write routines at Transfermation so that no need to include in my exter for those filds to extracter.
    Please some one guide me in this scenario.
    Chrs

    Hi,
    you do not have to copy the extractor, you can enhance it with fields and fill them via enhancement coding --> rsa6.
    If you want to copy it, you need to check what kind of extractor you have. Is it a function module or just a table extractor.
    for fm: copy the function module via se37 and copy the extract structure via se11. Add your enhancements in the copied structures and coding. Create a new datasource with rso2.
    for table extractor: create a view adding the additionally needed fields. create a new ds with rso2. Surely you need to add some coding in the relevant enhancement.
    regards
    Siggi

  • Hi, just got a new computer and need to move my library from the old one to the new one.  Does anyone know how to do this or where I can get the information?  Thanks!!

    I just got a new computer and need to move my itunes library from my old computer to the new computer.  Does anyone know how to do this or where I can get the information? Thanks!

    If you Google ipod nano 6th generation manual, you can download the PDF manual. Here's a quote from page 19:
    Transfer purchased content to another computer:
    1 Open iTunes on the other computer and choose Store > Authorize This Computer.
    2 Connect iPod nano to the newly authorized computer.
    3 In iTunes, choose File > Transfer Purchases from iPod.
    Songs that are not from the iTunes store can be copied to the new computer, and you just have to do File>Add to Library to get them into iTunes. And if you don't plan to continue using your old computer, you should deauthorize it because you only get 5 authorizations for iTunes store purchases, and this will cancel out the authorization on the old computer.

  • New year, new kid in town

    Hi, New kid in town here just waiting for my first Apple server X within the next days,
    sincerely I´ve no idea how to manage such machine, but I have a lot of courage ( je, je ) and a couple of clear things:
    1- I need it for distribute and sell my pictures to my current clients and the new ones I´ll get all around the world,
    2- I like challenges, I hope a little help from your huge wisdom.
    but for now just let me say hello and wish all of you a very, very happy new 2006 year.
    PD- I posted this message three times, but unable to see it, so, my apologies if it appears ...three times.
    G5   Mac OS X (10.4.3)   is anybody out there?
    G5   Mac OS X (10.4.3)  

    Hi,
    I think system is confused due to the fact, that you are closing year, which is beyond the current calendar year.
    Regards,
    Eli

  • I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    I am unable to login from my login page after I restarted my mini mac running snow leopard 10.6 server. I am a new user. Need help

    Try clearing your cache, [https://support.mozilla.org/en-US/kb/How to clear the cache Instructions here]. Then, try going to [https://accounts.google.com Google Accounts]. If there is currently an account singed in, sign out, then back in. After that, try going to Google Adwords.

  • Hi people new kid on the block. just imported to iphoto and made a slide show, but photo's in wrong order, how do I move  them about? cheers

    Hi every one question please?
    Just imported photo's to my mac iphoto, great, but made up aslide show viewd by dates but photo's all over te place out of sinc, how can I move them about  in order please ?.
    New kid on the block.

    In the slideshow mode there will be a slide tray at the top of the window.  There you can move photos to where you want them in the play order:
    OT

  • Pages will no longer let me open files that I have previously downloaded, worked on and then saved on my mac. However it will let me open pages documents that I have started from new. I need the other documents to open and can't figure it out. PLEASE

    Pages will no longer let me open files that I have previously downloaded, worked on and then saved on my mac. However it will let me open pages documents that I have started from new. I need the other documents to open and can't figure it out. PLEASE

    I just got my mac a month ago so go easy on me but I was just working with the pages that was already on it, and then today I know it updated, and now I am unable to open a lot of my documents!:(  Idk what you mean by the icloud version lol sorry! As for the version, when I open pages from my apps and click 'about' it says version 5.1? And when I open the document it just goes grey and kind of blinks and doesnt open? No error message or any indication of why it will not open now when I for sure have opened it in the past! Andddd for the OS X I think it is 10.9.1 ??

  • I have been editing a document on my MacBook Pro and iPad, which has the newer versions of Pages. Now, I cannot open on My MacBook. It says I need a newer version of OS. However, I'm not showing a newer version being availabe!!! Can anyone help???

    I have been editing a document on my MacBook Pro and iPad, which has the newer versions of Pages. Now, I cannot open on My MacBook. It says I need a newer version of OS. However, I'm not showing a newer version being availabe!!! Can anyone help???

    That is Pages for iPad v2.0, which Pages '09 v4.3 can't read.
    You need to either stick with the older version of Pages on the iPad or get Pages 5 for the Mac which is only available if you are running OSX 10.9 Mavericks.
    Unfortunately that is not the end of your woes because Apple has made iCloud convert the files to Pages 5 now, and Pages 5 has over 90 features deleted on top of doing a shocking job of converting older Pages files.
    Peter

  • HT1338 Even though I have the Pages 5.0.1 installed as the default software, I still receive the message "You need a newer version of pages to open this document."  HELP!

    Even though I have the Pages 5.0.1 installed as the default software, I still receive the message “You need a newer version of pages to open this document.”  HELP!

    Please clarify....
    Mac OS X (10.4.6)
    What your system profile shows yet, you posted in the ML forums.

Maybe you are looking for

  • Setting up an extended network from extreme with express

    Hi, Let me just explain what I am trying to do and I would love any help or suggestions. I have the modem going into the airport extreme.  The extreme is about 30 feet away, hard wired and hanging upside down in my hallway (should it be on the wall o

  • Outlook connector problem

    I am using outlook connector of version Patch-ID# 125361-03 NOTE: READ THE TERMS OF THE AGREEMENT ("AGREEMENT") IN THE LEGAL_LICENSE.TXT FILE CAREFULLY BEFORE USING THIS SOFTWARE. BY USING THE SOFTWARE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YO

  • SCCM 2012 Export Task Sequence fails with generic error message

    We have a complex task sequence comprising of more than 50 applications\packages, 1975 drivers, 18 driver packages etc etc. Its long, it's big and it will not export with it's content. We have several environments for development test and live. I am

  • Do you need to have OS X to use imessage for mac?

    I was useing my mac, and i wanted to get a imessage account. I was wondering if you need OS X to use it. If so, does OS X  do anything to harm or slow down your mac? -Leeisawesome

  • Colour changes when importing Illustrator graphics into Flash CS3

    Hi there! I'm creating a Flash site, and all the graphics are imported from Illustrator. Also, in the Illustrator file, there are some Phtoshop graphics with shadow effects on it. The problem is, that when I import the .ai into Flash, a pretty strong