Is there an easy way to go back to a specific part of a program?

I am writing a program and what I need is that once it has performed one action according to the users input, I need it to go back to just after the start of the program.
for example is have:
(Start of code)
menu
-if
--if
--else
-else if
--if
---for
--else
(rest of code)what i need is once it has done either one of the (*) for it to go back to the menu
However I am not sure how to do this. The only way I know of going back is with while loops but I dont think (?) this would work here.
I hope you understand this, trying not to paste my whole code in here but will do if people dont underatand what i mean!

Thanks for the tip.
I had never used the continue statement before so looked it up. Tried it and it half worked but tried other things mentioned on the same page and using break; got it to do what I was after!
thankyou all for your help and leading me in the right direction. (please don't tell my tutor im up at almost 4am still doing my java work, and not becuase it has to be in soon, becuase worryingly im rather enjoying it)
lol.

Similar Messages

  • Is there an easy way to switch back and forth between apps on an iPhone 4?

    Is there an easier way to flip back and forth between apps without going through the Home button?

    By "going through the Home button" do you mean double tapping the Home button to bring up the recently used apps tray?

  • HT204406 after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?

         after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?  thanks.

    thanks for the reply.  guess i'll have to do that.  apple, not really happy with what you've done with this latest update.  have not been able to enjoy my music in my car since the update.  most of us dont mind changes that progress timely, but this was much more than just a progression.  this was a complete change.  and not a good one, at all.  thanks to the two people that replied.  appreciate it.

  • Is there an easy way to import those misfortunate photos back into iphoto

    I moved my iphoto library to my external drive so that both my laptop and imac can use the synced photo library.
    ... but now my imac iphoto says I can not open my iphoto library, because is from a newer version of iphoto. And the application then closes.
    I figured out my newer laptop has a newer version of iphoto on it.
    Imac iphoto version is 6.0.6
    Laptop iphoto version s 7.1.5
    I Downloaded iPhoto Library Manager and use its rebuild function. This created a new library but says a lot of my pictures are lost. I can search and find them on my external drive and reimport, but there are a lot of them! Any suggestions?
    I'd rather use the 6.0.6 on my imac than pay for an upgrade.
    I just won't use my laptop's iphoto.
    BUT, how can I get my 6.0.6 working again with all of my pictures in tact? Or is there an easy way to import those misfortunate photos back into iphoto painlessly?
    Any other solutions??
    Will Snow Leopard have the newest iPhoto included?
    Thank you!
    Kim

    Kim
    If you want to revert to iPhoto 6 then you have two choices:
    1. Restore from your back up
    or
    2. Create a new v6 Library and start over.
    To create and populate a new *iPhoto 6* library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'.
    Go into the Old iPhoto Library (Right Click on the Library Icon and choose ‘Show Package Contents) and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the old iPhoto Library.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    “Snow Leopard” is an OS Upgrade. While we have no idea what will be included with it, on past experience, no, it will not include a new version of iPhoto.
    Regards
    TD

  • I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    Purchase and use Paragon Camp Tune

  • Is there an easy way to reimport all songs in my itunes folder?

    This may sound like a weird question but here goes... When I bring up my iTunes I have 8731 files (mostly music) that come to about 41.33G's but when I right click on my iTunes Music folder and select properties there are 8809 files and a total of 48.5G's. I am trying to free up some disk space and can't figure out why there is such a difference. I had issues with Norton 360 and removed it but I had to restore my music files from an external drive and when I did so I lost the links for music that I added after my last back-up. I noticed that TV shows I bought from Apple were not in my iTunes but I was able to locate them in the folder, and import them back into iTunes. I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts or a way to figure out which files may be duplicated in my iTunes Music folder. Seems like I am wasting 7G somewhere that I would like to recover. I already went through the duplicate songs and that didn't help. Any suggestions would be great...
    hp pc m260n   Windows XP   media center

    I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
    AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
    This MacMuse tip has a way of finding dead tracks if that helps.
    http://discussions.apple.com/thread.jspa?threadID=121967
    It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
    http://home.comcast.net/~teridon73/itunesscripts/

  • I am looking to "move out" of my computer and into my wife's, is there an easy way to accomplish this task, keeping all my files and setting up a second user?

    I just bought a new external 3TB hard drive for this task and want to keep my items seperate from hers for both our sanity.
    I figured that I would do a time machine back up and use that to do the move part of things.
    But as to setting up the new user on her computer I am just not sure if I can "tell" the computer to only use the new drive for my stuff and only acces the new drive for all things related to that new profile.
    More then anything else I want to be able to say that all things that are hers have not been touched/acccesed/deleted by any of my actions. And that I am "confined" to the new drive.
    I hope this makes sence.
    Mr Geef

    I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
    AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
    This MacMuse tip has a way of finding dead tracks if that helps.
    http://discussions.apple.com/thread.jspa?threadID=121967
    It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
    http://home.comcast.net/~teridon73/itunesscripts/

  • Is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed. my process has been (i am open to suggestions for other free and EASY services/me

    is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed.
    my process has been (i am open to suggestions for other free and EASY services/methods):
    garageband : create & edit audio. add 1400x1400 image.
    share to itunes.
    drag file to desktop.
    upload .m4a file to google drive.
    create a link post in wordpress using "podcast" tag & create "podcast" category.
    click on "entries rss" in wordpress, which takes me to the rss subscribe page (which is basically just my wordpress address with "/feed" at the end.
    i copy this url.
    go to itunes store > then "submit a podcast"
    itunes gives me the error message "we had difficulty downloading episodes from your feed."
    when i try to subscribe to my podcast in itunes, it does, but gives me no episodes available.
    i went back into wordpress and changed settings/ reading settings to : "full text" from "summary"
    still the same error message.
    i added a feedburner step after wordpress but got the same errors. i don't think i should have to add feedburner.
    wordpress seems to be encapsulating the rss, what am i doing wrong?
    this so much easier when you could go directly from garage band to iweb to mobileme; i miss those apple days (also idisk).

    if anyone has a super EASY process, i would LOVE to know what it is. EASY, meaning no html and also free. there are many free online storage systems available, many of which i currently use. the above process was just me trying to figure it out, if you have an easier method, please share. thank you so much!

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I have a new computer and want to sync my Iphone and Ipad2 to the new computer, is there an easy way to do this?

    I have a new computer and want to sync my Iphone and Ipad2 to the new computer (PC) instead of the old one, is there an easy way to do this?

    Extract from one of our senior participant.
    Syncing with new computer
    1) Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your laptop and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your new laptop, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on Edit / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.

  • Is there an easy way to pan and zoom still slides in PE4?

    Either i'm totally stupid, or why is it so hard to pan and zoom still slides in PE4?
    I'm trying to create a slide show in PE4, and i want to pan and zoom on each slide -- nothing overly fancy, but i want to control where the beginning and end point is for each zoom. It's really easy to do this in PSE 6 -- it shows you green and red boxes for where the pans/zooms begin and end and you can just grab the boundaries and change them. in PE 4, it seems you have to use presets (which are only pans OR zooms) or resort to Keyframes which are very complicated and VERY POORLY explained in the Adobe PE4/PSE6 classroom in a book.
    Is there an easy way to do pans and zooms without being a rocket scientist?

    Eric,
    The ability to use Keyframing in infinitely powerful. However, with that power comes some hand-work.
    However, once one has their head around the concept of Keyframing, the mechanics of it, plus the options, it becomes easy and second nature. It's getting to that point, that requires a bit of work and practice. I second Steve's tip link, as a great place to start. Once you become comfortable with the power, you'll likely never go back to any form of "Random Pan & Zoom."
    Now, the work that I do is usually very tightly scripted. Each "move" depends on the exact subject and what I, or the director, want at that moment, with that image. I often have this part figured out, before I re-size the images for Import. If I need more Pan, then I'll go a bit larger. Less Pan and I'll get it right at the DVD frame size (720x480 PAR 0.9, in my case).
    Learning which Panels to have open, and when, will go a long way to making the experience easier and more enjoyable, so setting up one's Workspace is very important. Big, honking monitors also make the editing experience more pleasant.
    Good luck,
    Hunt

  • Is there no easy way to change the computer that an iPhone is synched with?

    I have my iPhone 4 synched to an old Power Mac.  I just bought a new Macbook and want to transfer my iPhone info to this new computer so I can synch and update software from this new computer.  I am getting rid of the Power Mac.  Is there no easy way to do this?  I can't seem to figure it out.  I don't want to lose my info or iTunes library.  Apple is usually so intuitive, but this seems to be incredible complicated.  Any ideas?

    This link says "If you have photos that were synced to your phone or music ripped on your own that were not backed up, you will first have to extract them from your phone using third party software, before you do anything else, as Apple makes no provision to do so".  I don't understand.  Isn't it ALL synched to my iPhone?  Isn't that why it's ON my iPhone?  This is absurdly confusing.

  • Is there an easy way to remove entries from my site?

    I am running out of iDick space. I don't want/need to purchase more. I would like to remove some older entries from my site. Is there an easier way than cut and pasting? I want to save then on my computer, for posterity?

    Hi Sharon!
    Wow, you must have a very extensive site to be running out of iDisk space! First of all, are you sure you haven't got some unutilized iDisk space sitting around....maybe reserved for email or something? You can change the allocation between iDisk space and Email storage in your .Mac account settings page. Let me know if you need help on doing this...
    If you really are running out of space, I can't think of a good way for you to back up a portion of your site locally and only publish the recent entries to your iDisk. As you already know, iWeb loves to publish it all...all the time! Maybe it's time to bit the bullet and just start a new site for your new entries going forward. Before you start the new site, you can backup a read only version of your website to a CD or something by using "Publish to Folder". Then once you are sure you have the working website locally, you can delete the site from iWeb once and for all and then start your new site.
    I know it's probably not ideal, but it's a suggestion. You can always "Publish to Folder" and save the resulting folder as a fully functional website to a CD. Keep in mind that if you use any .Mac-only features (like counters, comments, search, slideshows, etc) these features will not be functional on a "Publish to Folder" site.
    If you have found any of this information to be useful to you, please take the time to provide me with feedback by marking my reply as "solved" or "helpful" using those little buttons that you see in the title bar of this reply. I'd really appreciate it!

  • I have a lot of duplicate songs on my iPhone 4--Is there an easy way to find and delete duplicates?

    Is there an easy way to find and delete duplicate songs on an IPhone 4?

    A belated hello.  On the topic of duplicate songs / tracks showing up in, say, your iPhone Music app but not in your iTunes Library, with these versions installed ....
    iTunes 10.5
    iPhone 4 running on iOS 5
    .... I discovered this too.  This is what I did:
    1. purchased full album from the iTunes Store
    (once download completed, album magically showed up in iPhone Music app, as expected, without having to sync)
    2. I then went to my iTunes Music view and edited the album year (Multiple Item Information)
    3. Synced
    4. All album tracks showed up in duplicate in iPhone Music app (but not in iTunes view)
    Solution:
    1. in iTunes, I changed back the album year to the one iTunes Store originally downloaded
    2. Re-synced
    3. Now all album tracks show up but no longer in duplicate in iPhone Music app
    Lesson learned: When purchasing music from iTunes Store, leave metadata untouched.

  • Is there an easier way to load a MIDI file in Logic8?

    Please, does anyone know how to import a MIDI file into Logic 8 withouthaving to manually reset all the instruments and sounds for each track? I have recently switched to a mac and want to perform along with the MIDI back-tracks I always use, but I don't know how to get Logic to do this w/o spending gobs of time assigning SW instruments for each track in every file (!!). Is there an easier way, or perhaps a better program to do this with? On my PC I can use a GM MIDI player that does this automatically. These are professionally made MIDI files with all program and channel settings built in.
    Thanks.

    Just use "import" & the sw insts' will load and assign accordingly, automatically.
    But oddly, there are times when importing a SMF w/imbedded prgm changes, that LP8 loads a completely wrong instrument to a specific track(s).
    One reason that I've kept only one of my trustworthy external midi modules (Roland XV5080), specifically for just importing SMFs'. When the XV is in GM mode, any standard midi files I import to LP8... always load pgm changes correctly 100% of the time.

Maybe you are looking for