How to use "continue"

hi all
i want to use "continue" statement in java... when i am doing this it says and trying to compile. But it says undefined label: error..
any help on this
thanks in advance

i am using a method to send bulkmails to some emailAddresses.... if i got any wrong email then immediately it throws an exception after this exception my control is coming out of loop. So i am not able to send emails to the remaining addresses even they are correct email addresses.
my code looks like this
     try
System.out.println(""+recipients.length);
     InternetAddress[] addressTo = new InternetAddress[recipients.length];
          for (int i = 0; i < recipients.length; i++)
//System.out.println(" <---------in forloop-------->"+recipients);
     start:
               addressTo[i] = new InternetAddress(recipients[i]);
//System.out.println("this is from bulk mail "+content);
//System.out.println("this is from bulk mail "+subject);
               boolean debug = false;
               String smtpHost="mail.ipointsoft.com";
               String htmlString = "<html><head><title>" +
               "</title></head><body><font class=verdana size=2><b>To Unsubscribe please<i><a href='http://192.9.1.7:8080/Unsubscribe?unsub="+addressTo[i]+"'> click Here...</a></i></b></font>"+
               "<p>" +
               " </body></html>";
//System.out.println("------->from blk mail"+smtpHost+"----------");
               //Set the host smtp address
               Properties props = System.getProperties();
               props.put("mail.smtp.host", smtpHost);
//System.out.println("<----------attachment------------->"+attachment+"<------------");
               //create some properties and get the default Session
               Session session = Session.getDefaultInstance(props, null);
     session.setDebug(debug);
//System.out.println("<----------i am after getting session------------->");
          // create a message
               Message message = new MimeMessage(session);
//System.out.println("<----------i am after getting msg------------->");
          // set the from and to address
               InternetAddress addressFrom = new InternetAddress(from);
               message.setFrom(addressFrom);
               message.addRecipient(Message.RecipientType.TO, addressTo[i]);
//System.out.println("<----------i am after setting the to address------------->");
               // Optional : You can also set your custom headers in the Email if you Want
               message.addHeader("MyHeaderName", "myHeaderValue");
               // Setting the Subject and Content Type
               message.setSubject(subject);
               BodyPart part1=new MimeBodyPart();
               part1.setText(content);
               BodyPart part2=new MimeBodyPart();
               DataSource source =new FileDataSource(attachment);
               part2.setDataHandler(new DataHandler(source));
               part2.setFileName(attachment);
               MimeBodyPart part3 = new MimeBodyPart();
               part3.setDataHandler(new DataHandler(new HTMLDataSource(htmlString)));
               MimeMultipart multipart=new MimeMultipart();
               multipart.addBodyPart(part1);
               multipart.addBodyPart(part2);
               multipart.addBodyPart(part3);
               message.setContent(multipart);
System.out.println("this is before calling send method on Transport Class $$$$$$$$$$$$$$$$$$");
               Transport.send(message);
               System.out.println("mail send sucessfully");
               }//end of for()--loop
          }//end of try-catch() block
          catch(Exception e)
System.out.println("mail did't send sucessfully********");
               e.printStackTrace();
               return false;
               continue start;
System.out.println("i am returning return");
return true;
thanks in advance

Similar Messages

  • How to use continue in loop ...

    Hi,
    declare
    i number;
    begin  
    i:=0;
    loop    
    dbms_output.put_line('i='||to_char(i));    
    if ( i = 2 )  then       
    continue;     
    end if;    
    dbms_output.put_line(' Only if i is not equal to 2 ');  
    end loop;
    end; When I run this block, oracle is throwing an error...
    ORA-06550: line 8, column 1:
    PLS-00201: identifier 'CONTINUE' must be declared
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignoredThis feature has been added in Oracle 11, but I am using Oracle 10.2.0.1
    Is there any other keyword like "CONTINUE" in 10g?
    Please help me.
    Thanks,
    Bharath.

    This
    This feature has been added in Oracle 11, but I am using Oracle 10.2.0.1
    Says it all.
    In this particular case using CONTINUE is a clear case of unreadable, unstructured code, because it should have of course been
    declare
    i number;
    begin  
    i:=0;
    loop    
         dbms_output.put_line('i='||to_char(i));    
         if ( i != 2 )  then       
            dbms_output.put_line(' Only if i is not equal to 2 ');  
        end if;    
    end loop;
    end;
    Sybrand Bakker
    Senior Oracle DBA
    Experts: those who did read documentation.

  • Hi! ... When configuring my new iPad, it says the UserId is already in use and I cannot progress any more. Of course it's in use, it's my UserId. How do I continue ?? ... Thanks in advance

    Hi! ... When configuring my new iPad, it says the UserId is already in use and I cannot progress any more. Of course it's in use, it's my UserId. How do I continue ?? ... Thanks in advance

    Did you select "Sign In with an Apple ID" as opposed to "Create a free Apple ID" when setting it up?

  • How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8)

    How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8) since November until now.  Mail will no longer download on the MacBook Pro and keeps asking for my password.

    Mail should still be usable with your machine - but you'll need to update the settings to conform to the requirements of your system. Check with your ISP (like ATT, etc.) for the settings that will work with your Mail. Once you've updated this, you should be able to email like before.
    For example, my ISP required that I go to Mail Preferences/Accounts and make sure the details conform to your email settings.
    I have no idea of what your ISP is or what the settings might be, but this is likely the source of the problem.

  • After a clean install, how can I continue using Time Machine?

    After a clean install, how can I continue using Time Machine?
    I booted from my recovery partition, erased my HD, installed the same OS, (Lion, 10.7.5) then restored from my TM.
    If it asks if i want to use TM, I say yes. When I chose the drive, it seems to want to start all over, instead of just picking up where I left off.
    Is there any way of picking up where I left off?

    Hi Frank,
    You are sure you looking in your Library in /Users/YOUR_USERNAME/Library and not /Library at the top level of your harddrive?
    When you open iCal what do you see?  Are the calendars the two default Home and Work ones?
    I really appreciate the responses -- especially if you are in the UK as opposed to Ontario.
    Why, do you have something against London Ontario?
    John M

  • I have an Epson scanner that is apparently no longer supported  because it is a PowerPC app.  It's a very good scanner that worked fine until I upgraded to OS Mountain Lion on my MacBook Pro.  Any suggestions on how I can continue to use it?

    I have an Epson scanner that is apparently no longer supported  because it is a PowerPC app.  It's a very good scanner that worked fine until I upgraded to OS Mountain Lion on my MacBook Pro.  Any suggestions on how I can continue to use it?

    For that model, Epson has this information:
    ICA Scanner Driver
    07/17/12
    Description: The latest Mac OS X ICA scanner driver for your Epson product is available only via Apple's Software Update. Here's how to get it:
    1. Connect the all-in-one or scanner to your Mac and power it on.
    2. Select the  menu, then Software Update.
    3. Follow the on-screen instructions to install the available updates.
    Note: Software Updates may find multiple updates for your system. You may choose to install all or some of the updates by clicking on Show Details.
    Compatible Systems: Mac OS X (v10.8.x)

  • How can I continue using my CS3? I needed to install a new hard drive, & CS3 wont accept my serial # on the re-install :-/

    How can I continue using my CS3? I needed to install a new hard drive, & CS3 wont accept my serial # on the re-install :-/

    Unfortunately, only Adobe customer service can assist you with your issue. These are user forums; you are not addressing Adobe here.
    Click on the link below, and after that click on "Still need Help? Contact us."
    Then on the next page, click Chat
    There is also a phone option.
    http://helpx.adobe.com/contact.html?step=PHXS_downloading-installing-setting-up_licensing- activation

  • When I use dynamic link how do I continue using it after closing and reopening a project?

    Hi
    Im very new to AF
    I cant seem to find the answer to this in any tutorials.
    When I using dynamic link, how do I continue using it after closing and reopening a perm pro project?
    Thanks
    Philip

    Hi Kevin
    Thank you very much for such a quick reply.
    I actually figured it out. As usual it was fairly obvious solution.
    I opened both project at the same time.
    Thanks again and sorry for waisting your time.
    R
    Philip

  • How can I continue to use my library of appleworks 6 drawings and sketches with Mountain Lion.

    How can I continue to use my library of appleworks 6 drawings and sketches with Mountain Lion?  Wednesday Jan. 30.  by Turtlelady.

    Now with iTunes 10.4 no iphone appears on the left sidebar
    Try removing and reinstalling the AMDS...
    iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X

  • How can I continue listening to a YouTube video while using another app?

    How can I continue listening to a YouTube video while using another app?

    How can I continue listening to a YouTube video while using another app?

  • I cannot use iPhoto now there is Photo on my mac. How can I continue to use iPhoto

    I cannot use iPhoto now there is Photo on my mac. How can I continue to use iPhoto

    You can, why do you think it's not possible? Does  need updating?
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • How do I continue to use Mail on my MacBook2? i use iCloud on my iPhone and iPad but cannot receive my Mail account on my older MacBook.

    how do I continue to use Mail on my MacBook2? i use iCloud on my iPhone and iPad but cannot receive my Mail account on my older MacBook. I have followed the iCloud/move link as suggested but it doesn't give me the continue to use Mail option. Any help gratefully received.

    Welcome to the Apple Community.
    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • Unable to use Elements 8 on my rewly restored laptop by Dell.  How can I continue using Elements?

    I'm unable to use Elements 8 on my newly restored laptop by Dell laptop.  How can i continue using my purchased copy of Elements 8 on my machine?

    What happens when you try?

  • How to use iMessage on Mac with continuity?

    Hi,
    Recently started using continuity on my iPhone 6 and iMac (Late 2013 running Yosemite).
    When I use iMessage on my mac i can easily send texts to new numbers that are not similar to my contacts, but in fact, if a new number i enter is similar to anything in my contacts it will auto suggest it and correct it to one of the contact suggestion whether i like it or not!
    According to the picture, i can never send a message to 204 as iMessage will auto correct it to the first suggestion or the second.
    Is this just another glitch like the 1000 other ones that apple has? Or am i just doing something stupid?
    I can send a text to 205 as i do not have any similar contacts associated with those digits.
    Thanks

    Hi,
    It will suggest and look like it will auto-complete until you type further.
    As 204 is unlikely to be the full number the issue does not arise.
    For instance if I start typing my name every option that I have listed with my name over three Contacts card (for my three computers) and some Accounts not linked to Address Cards are listed
    Of course this lists also shows cross connections between the accounts making the list longer.
    10:13 pm      Thursday; February 26, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to use boolean transition as trigger 0to1= 1impulse, 1to0= 0 impulse

    Hello!
    I have a boolean button HVenable which will be used to enable/disable the high voltage output of a voltage source.
    The problem:
    I only need one True value to send the Open HV command
    and one False value to send the Close HV command; the boolean button sends a continuous train of True values when it is on and a continuous train of F values when off.
    How can I convert a transition from off to on / F to T into a single 1 impulse or T impulse 
    and the transition from on to off/ T to F into a single 0 impulse or T impulse.
    What instrument converts a transition from F to T into a 1 or T impulse
    and a transition from T to F into a 0 impulse (different from the first kind of transition)?
    In the attached test vi, such an instrument would be inserted between HVenable button and Select;
    when True it will send an open command to visa O 01 CR
    when False  it will send a close command O 00 CR.
    Solved!
    Go to Solution.
    Attachments:
    bultrig.vi ‏11 KB

    First, Do Not Use Continuous Run to make code run more than once! Place the repeating code inside a loop. Continuous Run is a troubleshooting tool to be used (sparingly) during development.
    The key to your issue is to use the Event structure. A Value Change event on the HVenable boolean will do exactly what you want.
    You do not need Type Cast and all the conversions. Set string constants to '\' Codes display mode and enter the data you want.
    Lynn
    Attachments:
    bultrig.2.vi ‏11 KB

Maybe you are looking for

  • DL DVD will not play

    I have an SD DL DVD authored in DVD Studio Pro. There is a lot of content, so I needed to use a Dual Layer DVD. I was able to build the DVD with a suitable layer break point. The build and the format went fine. If course, the DVD and an IMG file work

  • Cant hear audio from dvd imported footage

    I transformed some footage obtained on my camera to a dvd, and im working on it, but i cant hear the audio and when i pass it to the timeline doesnt appear any audio at all, when i view my clips on viewer i can hear the audio but not when working on

  • Installing Patch 9.2.0.5: Weird "Stop Running Services" Screen

    Hi to all. I found this issue in several places, including this forum, but I never saw a working proposal for a satisfying solution. Installing Oracle Patch 9.2.0.5 over a 9.2.0.1-Installation on XP Pro, I was confronted with a "Stop Running Services

  • PSE 8 Editor freezes in Windows 7

    I used to have vista and my PSE8 worked just fine. I switched to Windows 7 because there werent any compatibility issues... or so I thought. PSE 8 downloads just fine and organizer opens just fine. Editor wont open... freezes and runs my computer ver

  • Feel interested in bc4j

    hello i am now studying the bc4j following jdeveloper tutorial,i find the operation procedure is similar to the o-r mapping,because i have used several o-r mapping tools,such as hibernate and toplink. i wonder if the bc4j is also a o-r mapping api?if