What exactly continue & return statement does

Hi All,
Here i what to know what exactly continue & return statement does?Pls. do explain with an example for each.
Thanx,
M.Ananthu

In this example, break would do the same thing that return does.
import java.awt.*;
import javax.swing.*;
public class demo {
  static String[] strings = {
    "", "Mary", "had", "", "a", "test", "little", "lamb"
  public static void main(String[] args) {
    for(int j = 0; j < strings.length; j++) {
      if(strings[j].equals(""))
        continue;
      System.out.println(strings[j] + " ");
      if(strings[j].equals("test"))
        return;
}

Similar Messages

  • What exactly the "recovery disc" does?

    I'm about to reinstall everything on my laptop but would like to know what exactly the "recovery disc" does....
    I presume that it formats the HDD with a clean install of the OS and that all the toshiba apps like disc recorder, VAP etc... are NOT installed and have to be installed afterwards??

    > {quote:title=Jayjay wrote:}{quote}
    > Well, the recovery CD contains a Toshiba image. The Toshiba image is a package and is contains a Windows OS, Toshiba drivers, tools and additional software.
    > Simply said it contains everything what you could find preinstalled on the Toshiba notebook.
    >
    > And Yes; the recovery CD formats the whole HDD (also the partitions) and installs everything again.
    > It sets the notebook back to the factory settings
    so its just the OS packed with toshiba software and drivers - guess i wont have to download all of the toshiba applicaitions just yet then :)

  • What exactly is this code doing?

    Our prof gave us some sample code for converting Person objects into array information, and back again.
    My question is about this method:
    public Person[] convertToPersonObjects()
      Person p[] = new Person[data.size()];
      for(int i = 0; i < p.length; i++)
         p[i] = new Person((String)((Vector)data.elementAt(i)).elementAt(0),
                (String)((Vector)data.elementAt(i)).elementAt(1),
                (String((Vector)data.elementAt(i)).elementAt(2),
                (String)((Vector)data.elementAt(i)).elementAt(3),
                (String)((Vector)data.elementAt(i)).elementAt(4));
      return p;
    }"data" is a vector that has been holding the five attributes of Person. What I'm not getting here is why he used this construction: ((Vector)data.elementAt(i)).elementAt(1)So is this casting the Vector value of the "data" vector element into a String that is then stored as element 1, 2, etc. of the Person object? Why would a vector element have to be cast into a Vector anyway? And I'm confused by the double use of "elementAt".
    Help is much appreciated!

    ((Vector)data.elementAt(i)).elementAt(1)Hi!, I think that your data Vector contains in every posotion another Vector with the elements of each person, so if the position i of Data has a Vector you should cast what elemenAt returns and then acces what you need to create a Person Object.
    Search your source code for something like "data.add();" and see if it adds a Vector to data.
    The cast to String is done because the elementAt method returns an Object
    Hope it helps

  • Help with return statements

    Can someone explain to me what a return statement does exactly and how I would use it to return a value in the follwoing type of program.
    Its a array making program that allows up to 25 values with the value 0 stopping the method. I need to be able to display the how many usable values the user input (anywhere from 1-25).
    To do this I need to use a return statement, correct? if so, how do utilize it correctly if it is nesasary I will post the code itself.

    Heres what I have for the code...
    To simplify amounbt of typing(I wrote program in telnet) The beginning is a set of options using switch statement. 4 choices, 1)new data. 2) list the data 3) change the data and 4) exit.
    For the new data I need to have the user input up to 25 values or stop at any time by entering 0. the values also cannot be greater than 12000 or less than -12000. it should also return the number of usable values in the array. The return statement is what I am having trouble with.
    Code...
    static int NewData(double a[]) //This part is not changeable
    {   int 1;
    for(i=0; i<25; i++)
    {  System.out.print("Enter Element"+(i +1)+ "- ");
    a=MyInput.readDouble();
    if (a[i]>12000 || a[i]<-12000)
    {System.out.println("the last value is not valid");
                                 break;}
    if (a[i]==0)
    break;
    } return i;
    As of right now the method functions as is but two things need to be changed or added. If possible the program should now break if the user inputs an element greater than 12000 or less than -12000, it should just reset to the integer they were on. Also, how do I get the return value to display something? have i used it correctly to show the number of usable values ithe user entered?

  • What exactly is Aperture?

    As a present I got Aperture and I'm not too sure weather I should open the box and start using the software OR just stick with iPhoto?
    Loads of questions I'm afraid but the software is kinda pricy enough:
    1. What exactly is it Aperture does? Is it a scaled down Apple version of Photo Shop or just a fancy version of iPhoto?
    2. Will my machine be fast enough (2.4GHz Intel Core Duo 2 - It works fine with PS CS 5.0)?
    3. If I chose to keep Aperture and instal it, does it "replace" iPhoto?
    4. Will I be able to use Front Row as my picture viewer on my flatscreen?
    5. Do I have to transfer my iPhoto library (the huge file) to Aperture and if so do I keep the iPhoto file or can i delete this (I'm running low on HDD space as it is)?
    6. After all these questions, will you still have enough energy to help me out should it go pear shaped?
    Thanks for any replies guys

    You have some great answers. Permit some nuance, if you will.
    Cupart wrote:
    1. What exactly is it Aperture does? Is it a scaled down Apple version of Photo Shop or just a fancy version of iPhoto?
    Aperture a fancy version of iPhoto in the same sense that a Porsche is a fancy VW. Aperture (and Lightroom, for that matter) are a rethink of what a photographer needs most, not a fancy pixel editor (we already have Photoshop) but rather a image centered alternative to the Finder (or Explorer). iPhoto was the first effort and Aperture is the real deal.
    2. Will my machine be fast enough (2.4GHz Intel Core Duo 2 - It works fine with PS CS 5.0)?
    If you have 4 GB of RAM you should be fine. Aperture 3 is very speedy on my little Mini.
    3. If I chose to keep Aperture and instal it, does it "replace" iPhoto?
    Not necessarily, but probably. Took a few years, but I eventually migrated everything to Aperture. The nice thing is you don't have to decide all at once. You can start by adding all of your new images to Aperture, and then, when you are comfortable, move your iPhoto images or simply reference them. The alternatives are endless and most are reversable.
    4. Will I be able to use Front Row as my picture viewer on my flatscreen?
    Sorry, no idea.
    5. Do I have to transfer my iPhoto library (the huge file) to Aperture and if so do I keep the iPhoto file or can i delete this (I'm running low on HDD space as it is)?
    No, see previous answer.
    Take some time to read the on line manual, watch the videos and haunt Rob Boyer's site. Most of those who post here with their socks in a knot about Aperture are trying to make it act like a file browser rather than accepting it as a full on image centric operating environment. And yes, Photoshop makes a very nice plug-in to Aperture.
    Bonne chance!
    DiploStrat

  • What is sapint.exe -TRANSLATE doing

    Hi all,
    I'm new to EDI. we're running GENTRAN window version for EDI middleware.
    I have seen the following statement in one of the process control.
    E:\GENSRVNT\Bin\sapint.exe -TRANSLATE:
    SR-ABC-EDI01\GEN\OUTR3\FTP_IDOCS\MNM\sapidoc.sap
    May i know what is the above statement doing? is it convert the IDOC into a EDI file?
    if yes, where (under which folder) i can see the EDI file?
    thanks.

    Hi Reetha,
         I think this statement is converting the IDOC into EDI file, like you said. but not sure where the EDI file is created.
    I think you configure the target directory in the Gentran tool somewhere.
    Some Gentran expert should be able to help you.
    Regards,
    Ravi

  • Apple_Boot Recovery HD partition - what exactly does it do?

    On a new MacBook Air (Mid 2011) there is a partiton on the internal solid state drive that shows up (you can see it by using Terminal, then type "diskutil list" at the prompt) as Apple_Boot Recovery HD  650.0 MB   disk0s3.
    My question is what exactly does this partition provide?  Is the Internet still required to accomplish a "Reinstall Mac OS X"?
    Does the partition just provide a quick way to reach the Mac OS X Utilities pane (see below) when restarting your computer while holding down the Command and R keys?
    If the partition is not on a MacBook Air (Mid 2011) do you reach exactly the same functionality when you are required to download the Mac OS X Utilities pane from the Internet?
    Once at the Mac OS X Utilities pane, would you be required to use the Internet to accomplish a "Reinstall Mac OS X" even with the presence of the the Apple_Boot Recovery HD partition?

    2. You can boot from any Recovery HD regardless of its location provided it's connected. For example you can use the Lion Recovery Disk Assistant -  OS X Lion: About Lion Recovery Disk Assistant - to put a Recovery HD volume onto a small USB flash drive with at least 2 GBs of space. You can install Lion onto a 16 GB USB flash drive in which case the installer will include a Recovery HD partition.
    3. If you boot from the Recovery HD then the reinstallation is by Internet. If you have your own bootable USB Lion flash drive, then the reinstallation will take place from the flash drive. Here's how the flash drive is made:
    Make Your Own Lion Installer
    1. After downloading Lion you must first save the Install Mac OS X Lion application. After Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing Lion.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    3. Locate the saved Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the InstallESD.dmg disc image to the flash drive as follows:
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the InstallESD.dmg disc image file into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable Lion installer that  you can use without having to re-download Lion.

  • So what exactly does limited to "one app" mean with a Pro account and the new prices?

    So it seems Pro has dropped in price but it is now limited to "one App".
    So what exactly does that "one App" mean?
    Only one tablet version or one phone version for a certain title?
    Or you can have a tablet & phone version including android & iOS for that one title?

    I think that everyone received it just now…
    Changes to Adobe Digital Publishing Suite, Professional Edition
    Effective immediately, all customers who newly purchase or renew Digital Publishing Suite (DPS), Professional Edition, will be able to publish only one app per license of DPS Professional Edition.
    Under this policy change, Professional Edition customers can publish an unlimited number of issues (.folio files) to a single app and distribute those issues based on purchased fulfillment bundles.
    An app created with a single license of DPS Professional Edition can be distributed to any or all of the marketplaces that DPS supports, including the Apple App Store (and Newsstand), Google Play, Amazon Appstore, and the Windows Store.
    In conjunction with this policy change, Adobe is reducing the price of a Professional Edition license to $4,800 USD annually (€3,600/¥480,000) or to $400 per month (€300/¥40,000) and will include 1,000 fulfillments annually. The number of fulfillments included with a monthly subscription remain unchanged.
    This policy does not apply to test or demo apps published using Professional Edition. The one-app-per-license policy applies only to an app published to a supported marketplace(s).
    If you are an agency, upon your renewal or purchase of Professional Edition, you can create only one app per Professional Edition license. If you have multiple clients for whom you are creating apps, either you as the agency or your client must purchase a Professional Edition license for each app published to a supported marketplace(s).
    If you are an existing Professional Edition customer and choose to renew your Professional Edition license at the end of your annual agreement, these changes, including the lower price point and 1,000 fulfillments, apply at that time. These changes do not apply to your existing DPS Professional Edition agreement and take effect only if you renew your license.
    DPS Professional Edition customers can continue to create unlimited Single Edition apps, which is unchanged under the new policy. A Single Edition app is defined as an app that includes one built-in or embedded folio.
    If you expect to publish three or more apps annually, we encourage you to contact your local reseller to discuss pricing for a multi-year Enterprise Edition license.
    Enterprise Edition offers additional functionality and benefits not available through Professional Edition. These include app customization, integration with back-end business systems, in-app marketing tools, targeted content based on user entitlement, and the ability to publish apps privately.

  • What exactly does the Radio Beacon Indicate

    I have seen cases where the Radio Beacon is black and when it is gray. When it's black you may or may not be able to go through the wireless router to the modem and then to the internet. When it is gray, you cannot really do anything except be in a local mode. However there are instances when the Radio Beacon is black, rather than gray, and you still cannot access the internet. So, what exactly does the activated Radio Beacon Indicate, i.e., that the wireless network is working and the modem is down, or something else entirely ?

    Assuming you're referring to the Airport icon in the menu bar, 'clear/empty' means Airport is turned off, gray bars means Airport is on but not connected to a network, and black bars means Airport is on and connected to a network. Other possible icon states are solid gray with a little computer inset, meaning you're connected to a computer-to-computer created on the Mac, and gray bars with an exclamation point (10.6 only), meaning connected to a network but not authenticated (e.g. wrong password for an 801.2X corporate/university network).
    To your question, it's perfectly possible to be successfully connected to a network (black icon) and unable to access the internet. Situations like that would include the network requiring a proxy server, for which you haven't set up the details on in Network Preferences, or you're connected to an open network that requires you to enter information or agree to terms (e.g. a hotel network, where you need to put in your room number and agree to the charges before you can connect to the internet).

  • What exactly does Standby mode do?

    In a quest to figure out how to turn the screen power off when I want to, I have found Standby mode, which does exactly that.  All the manual says about it is to press and hold the mute button to go into standby mode, but doesn't say anything else about it.  What exactly is "Standby Mode"?  Will it still give me calendar alerts, and phone calls and other alerts, or is it essentially turned off?
    Jesse
    Solved!
    Go to Solution.

    Standby mode is just a low power state to conserve battery life. It shuts of the backlight and screen, and does not respond to key presses until you bring it out of standby mode. Your notifications, phone calls, etc. are not affected by it.
    The holster serves the same purpose: it has a magnet that is detected by the phone to put it into standby. If you go to the notification/ ringer profile settings, you will notice 2 different setting: out of holster and in holster.
    Kijana
    Please remember to:
    1. Mark Accept as Solution on the appropriate post once your issue has been resolved
    2. Give Kudos to helpful posts (click the star next to the post)
    Thanks

  • What exactly does the colaece option do in TOAD software

    Hi,
    What exactly does the colaece option do in TOAD software.
    Regards,
    MuruguPandian P

    Coalesce will take ADJACENT free space and coalesce it into one larger free chunk.
    A free extent in a dictionary-managed tablespace is made up of a collection of contiguous free blocks. When allocating new extents to a tablespace segment, the database uses the free extent closest in size to the required extent. In some cases, when segments are dropped, their extents are deallocated and marked as free, but adjacent free extents are not immediately recombined into larger free extents. The result is fragmentation that makes allocation of larger extents more difficult.
    You should often use the ALTER TABLESPACE ... COALESCE statement to manually coalesce any adjacent free extents. To Coalesce a tablespace give the following command
    SQL> alter tablespace ica coalesce;
    Source: http://www.oracle-dba-online.com/tablespaces_and_datafiles.htm
    Regards
    Asif Kabir

  • What exactly does a new poster have to do to get permission to post images?

    Recently there was a forum update that disabled new posters to add images
    (AND links?) Supposedly this was to reduce spam. So far so good.
    Not surprisingly, immediately after the update we have numerous posts in the Forums Issues forum complaining about this feature and no doubt plenty of users just submitting to this policy in silence.
    This whole feature is a SEVERE (that's right. bold AND in caps) hindrance. I don't have the stats, but I'm sure a considerable percentage of
    (non spam) original posts are from new users with no previous forum activity. Pictures are especially important in the Chart Control forum as visualization is what charting is all about.
    (This is the forum I frequent. So yes, I'm biased.)
    Ofcourse, I'm sure the forum developers have weighed the pros and cons and studied the stats and then decided what to do after serious consideration...
    The question is: What exactly does a new poster have to do to get permission to post images? Wait for how long? Reply to a confirmation email? "Participate" more?
    (Say it ain't so.) How much more?
    If there really is a workaround by adding an image tag with the edit html button, I don't want to hear it. It's as silly a way to add images as in the before times, the long long ago.
    (Also, if this is possible, this whole restriction feature is actually worse than useless. Spammers will exploit this sooner than later. (A very good point made by our dear friend Quincy in a post that has since been deleted it
    seems.))

    I believe answering that question defeats the purpose of having the "feature".
    I suspected as much.
    I was hoping to add some explanation to the chart forum FAQ, I guess "Body text cannot contain images or links until we are able to verify your account."
    (if this really is the only message new posters get) will have to do.
    I still feel this is more of a hindrance to the quality of the forums than not. As confirmed it seems by Naomi, spammers already have a workaround.
    Sipla, it sounds like we should add this FAQ to this article:
    http://social.technet.microsoft.com/wiki/contents/articles/7359.forums-help-faq-en-us.aspx
    What do you suggest?
    What does the message say to the user who cannot post links and images yet? We should map to that language.
    Thanks!
    Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog,
    Twitter,
    Wiki)
    It says "Body text cannot contain images or links until we are able to verify your account."
    If this means you will get a verify email, then you should get a verify email.  The message infers that either action will be taken by the forum mods that will be apparent to the user or that the user needs to take some sort of action. 
    If this is not the case, the wording needs to be changed; it should not mislead you.  This is an incredibly vague status message.
    I do not have any record of a verify email in my inbox history.  All I have is an email this morning from MSDN Site Support (I also posted a request yesterday in MSDN Site Feedback) asking me which account I needed verified.  I only have one account. 
    Almost immediately after I replied, I was able to post links and photos.  Honestly I do not know which came first though, the "verification" or my reply to the email or someone noticing the thread about compaining about it a month after signing up.

  • What exactly does "delivers" mean? ):

    I ordered an iPad mini on the 7 Nov, and right now the status is still processing items, not even close to preparing shipment yet.
    but it says it delivers: 26/11/2012 - 3/12/2012. so my question is what exactly does "delivers" mean?
    the time that it takes to reach you? or the time it takes to be prepared to get ship to you?
    because i thought it takes at least 1-2 weeks to get shipped. but apparently it's not prepared for shipping yet. ):
    Cheers

    It should mean the anticipated date of delivery to you.  This has to take account of preparing for shipping.   Delivers would seem to me to be a firm statement.   (But don't hold me to that)  .

  • What exactly does the following do?

    i understand what this does.
    return(password);
    but what exactly does this do?
    return (password == null ? "" : password);

    got it thanks.
    is the reason for this to prevent the javabean getter
    from sending a null to a jsp file?
    for example, if the setter is not called before the
    getter, the value is null and the jsp won't like
    this.
    could you also initialize the properties of the bean
    to ""?That sounds like a reasonable explanation. Depending on the implementation, initializing to "" might work fine or it might have unintended consequences if there's anywhere that a null and an empty string are interpreted differently.

  • "Check Network Connection​" - What Exactly Does the TV Check?

    Hi everyone
    May I please ask, what exactly does the TV check when I choose "check network connection"?
    In other words, when I click the "check network connection", what IP address / servers and ports does it communicate to? What checks does it do?
    Because my TV cannot establish a network connection via settings, but the browser works perfectly well,
    I would like to carry out the same checks of "check network connection" on my PC.
    Then, if failed also on my PC, I would turn to my ISP with the results, as I believe it is the one to fault.

    Assuming you're referring to the Airport icon in the menu bar, 'clear/empty' means Airport is turned off, gray bars means Airport is on but not connected to a network, and black bars means Airport is on and connected to a network. Other possible icon states are solid gray with a little computer inset, meaning you're connected to a computer-to-computer created on the Mac, and gray bars with an exclamation point (10.6 only), meaning connected to a network but not authenticated (e.g. wrong password for an 801.2X corporate/university network).
    To your question, it's perfectly possible to be successfully connected to a network (black icon) and unable to access the internet. Situations like that would include the network requiring a proxy server, for which you haven't set up the details on in Network Preferences, or you're connected to an open network that requires you to enter information or agree to terms (e.g. a hotel network, where you need to put in your room number and agree to the charges before you can connect to the internet).

Maybe you are looking for

  • My ipad mini is showing an flashing apple logo

    My ipad mini is showing an flashing apple logo.i have tried resetting (off button and home button), but when it turns back on, its the same problem., i have also tried a hard reset twice, but it wont continue until i put the passcode into ipad.any he

  • TS1398 i can access my wireless network on every other device EXCEPT my new iPad - any thoughts on why?

    any idea about what's going on and why i can't connect my wireless account to the the "new iPad?"

  • How to persist updated DataGridTemplateColumn value

    I am new to WPF and facing some issues with datagrid . My ViewModel has an ObservableCollection Report Of class T_Reports. //EF generated code  public partial class T_Reports         public int ReportID { get; set; }         public string ReportName

  • Photos disappear in Yosemite

    I was using Yosemite beta, downloaded and installed the commercial version yesterday. Opened iPhoto, got a message saying some photo permissions needed repairing and then, surprise, no photos in iPhoto. In the finder, thought, the info on the app. sa

  • F2210 all-in-one question

    I need to clean the inside of the glass on my F2210, and I need a Torx scredwriver to get into it. I currently do not have any, will have to buy one. Does anyone know what size Torx it takes?