Jump Statement in Loop Program – Continue

Jump Statement is Loop Program – Continue?

This is best work of jump statement in java program.

Using of this statement we can manage the loop program.

Let’s see one example on it.

Our loop is from 1 to 1000.

But we do not need 201 to 300 numbers from loop.

That time continue statement will help in this program.

 

Program on – Jump Statement – Continue

class LoopEx3

{

            void method1()

            {

                        int x;

                        for(x=1;x<=10;x++)          // Loop

                        {

                                    if(x==5)                     // does not give o/p just skip 5 number

                                    continue;

                                    System.out.println(“X = ” + x);

}

System.out.println(“Bye from Method”);

}

}

class loop3

{

          public static void main(String args[])

          {

                   // Create an object of class LoopEx3

                   LoopEx3 obj = new LoopEx3();

                    obj.method1(); // call to method1()

                   System.out.println(“Bye from Main”);

}

}

Output:

X = 1

X = 2

X = 3

X = 4

Here Skip X = 5 number from loop

X = 6

X = 7

X = 8

X = 9

X = 10

Bye from Method

Bye from Main

 

About Program

In this program, Loop is working till 4 numbers.

Then Skip 5 number then continues till 10 numbers.

Then program print “Bye from Method” statement

Then program reach at main program and then print “Bye from Main”

 

You can see this program on YouTube

 

List of Jump Statement Tutorial.

NoTitle
1Create loop from 65 to 122
And Display A to Z
Then Skip 91 to 96 number
And Display a to z

 

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

902total visits,11visits today


mayank

Hello, I am Maddy a Java blogger, trainer and developer

Related articles

54 Comments

  1. September 20, 2016 - 9:26 pm

    I’ve been browsing online more than three hours today, yet I never found any interesting article like
    yours. It’s pretty worth enough for me. In my view,
    if all webmasters and bloggers made good content as you did, the net will
    be much more useful than ever before. http://bing.net

  2. September 30, 2016 - 4:58 am

    I have read so many articles on the topic of the blogger lovers except this post is in fact a pleasant piece of writing, keep
    it up.

  3. October 1, 2016 - 4:03 am

    I read this post fully concerning the comparison of hottest and previous technologies, it’s remarkable article.

  4. October 1, 2016 - 10:38 pm

    Hello! Do you use Twitter? I’d like to follow you if that would be okay.
    I’m definitely enjoying your blog and look forward to new posts.

  5. October 1, 2016 - 11:17 pm

    Wow! Finally I got a web site from where I be
    capable of really get valuable data regarding my study and
    knowledge.

  6. October 1, 2016 - 11:18 pm

    Asking questions are truly fastidious thing if you are not understanding anything
    entirely, however this piece of writing offers nice understanding even.

  7. October 1, 2016 - 11:59 pm

    Simply wish to say your article is as astonishing. The clarity in your post is
    simply spectacular and i can assume you’re an expert on this
    subject. Well with your permission allow me to grab your feed
    to keep updated with forthcoming post. Thanks a million and
    please keep up the enjoyable work.

  8. October 1, 2016 - 11:59 pm

    Nice blog here! Also your web site loads up fast! What web host are you using?
    Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol

  9. October 2, 2016 - 12:01 am

    Hi there, i read your blog from time to time and i
    own a similar one and i was just wondering if you get a lot of spam responses?
    If so how do you stop it, any plugin or anything you can suggest?
    I get so much lately it’s driving me crazy so any support is very much appreciated.

  10. October 2, 2016 - 12:09 am

    wonderful points altogether, you just won a
    emblem new reader. What may you recommend in regards to your submit that you
    simply made some days ago? Any positive?

  11. October 2, 2016 - 12:10 am

    I needed to thank you for this fantastic read!! I definitely enjoyed every bit
    of it. I have you saved as a favorite to check out new things you post…

  12. October 2, 2016 - 12:13 am

    Wow, this paragraph is good, my sister is analyzing such things, so I am going to convey her.

    • October 2, 2016 - 1:50 pm

      Thank you.. we will add more interested topic in it..

  13. October 2, 2016 - 12:14 am

    I’m not sure why but this web site is loading extremely slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

    • October 2, 2016 - 1:49 pm

      currently we are using basic server package… so this is our side issue.. we will clean this thing in 1 week

  14. October 2, 2016 - 12:31 am

    Hello Dear, are you in fact visiting this site on a regular basis, if so afterward you will
    definitely obtain fastidious knowledge.

  15. October 2, 2016 - 12:33 am

    It’s an amazing piece of writing designed for all the web people; they will take advantage from it I am sure.

  16. October 2, 2016 - 12:47 am

    Good day! This is kind of off topic but I need some help from an established blog.
    Is it difficult to set up your own blog? I’m not very techincal
    but I can figure things out pretty fast. I’m thinking about making my own but I’m not sure where to begin. Do you have any ideas or suggestions?

    Cheers

    • October 2, 2016 - 1:46 pm

      Just search about wordpress… you become a blogger in 1 day

  17. October 2, 2016 - 1:16 am

    Hey I am so glad I found your webpage, I really found you by error, while I was
    researching on Bing for something else, Regardless I am here now and would just
    like to say thank you for a tremendous post and a all round
    entertaining blog (I also love the theme/design), I don’t have time
    to go through it all at the minute but I have bookmarked it and also included your
    RSS feeds, so when I have time I will be back to read
    much more, Please do keep up the fantastic jo.

  18. October 2, 2016 - 2:59 am

    WOW just what I was looking for. Came here by searching
    for java program

  19. October 2, 2016 - 3:01 am

    Heya this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding knowledge so I wanted to get guidance from someone with experience.
    Any help would be enormously appreciated!

    • October 2, 2016 - 1:44 pm

      Generally i do this in wordpress editor.. it is very easy then other code…

      No need any code

  20. October 2, 2016 - 9:54 am

    I was suggested this website by my cousin. I am not sure whether this post is written by
    him as no one else know such detailed about my problem.
    You’re amazing! Thanks!

  21. October 2, 2016 - 4:31 pm

    Hello there! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community
    in the same niche. Your blog provided us valuable information to work
    on. You have done a extraordinary job!

  22. October 3, 2016 - 1:39 pm

    I simply couldn’t go away your web site prior to suggesting that
    I really loved the standard info a person supply on your guests?
    Is gonna be back regularly in order to check up
    on new posts

  23. October 3, 2016 - 4:25 pm

    Excellent site you have got here.. It’s difficult to find good quality writing like yours nowadays.

    I honestly appreciate people like you! Take care!!

  24. November 2, 2016 - 4:50 pm

    Do you have a spam issue on this blog; I also am a blogger,
    and I was wanting to know your situation; many of us have developed some
    nice methods and we are looking to exchange techniques with other folks, why not shoot me an e-mail if interested.

    • November 3, 2016 - 6:30 pm

      No i do not have any spam issue

  25. November 2, 2016 - 7:10 pm

    Excellent article from expert. Thank you very much for posting this useful info
    for all of us.

  26. November 4, 2016 - 5:34 am

    Hi, your site is excellent. I really do appreciate you sharing educational posts.

  27. November 11, 2016 - 12:09 pm

    Great I should definitely pronounce, amazed with your site.
    I had no difficulty navigating throughand also related info ended up being truly easy to access.

  28. November 11, 2016 - 12:38 pm

    Wow, amazing blog format! How long are you currently blogging for?
    Your website is amazing, and content materials are excellent!

  29. November 11, 2016 - 12:43 pm

    Very good post, I’m about to spend much more time researching this subject.

  30. November 11, 2016 - 12:44 pm

    Excellent entry! I found it quite interesting. I’ll come back later to see if more posts are added.

  31. November 11, 2016 - 12:56 pm

    Fantastic post, I think various other site owners need
    to learn a lot from this web site its very user-friendly and contains excellent articles.

  32. November 15, 2016 - 12:32 pm

    I simply could not leave your site prior to suggesting
    that I actually loved the standard info a person supply in your visitors?
    Is going to be back incessantly in order to inspect new posts

  33. November 27, 2016 - 3:57 am

    Excellent post. I was checking continuously this weblog and I am impressed!
    Very helpful information specially the remaining section 🙂 I maintain such information a
    lot. I used to be seeking this particular info for a very
    long time. Thank you and good luck.

  34. December 9, 2016 - 1:10 pm

    We are a group of volunteers and starting a new scheme in our community.
    Your web site offered us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

    • December 16, 2016 - 12:23 pm

      Please find Video bottom of the page

  35. December 16, 2016 - 12:29 pm

    Greetings I am so glad I found your website, I really found you by error, while I was browsing on Yahoo for something else, Nonetheless I am
    here now and would just like to say many thanks for a tremendous post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at
    the moment but I have saved it and also included your RSS feeds,
    so when I have time I will be back to read much more, Please do keep
    up the fantastic job.

  36. December 30, 2016 - 1:45 am

    I’m not sure why but this blog is loading very slow for me.
    Is anyone else having this issue or is it a problem on my end?

    I’ll check back later and see if the problem still exists.

    • December 30, 2016 - 9:29 am

      yes, this is problem…

      I will transfer my website in cloud server in 1 to 10 days…

      Sorry, for slow loading..

    • January 3, 2017 - 9:27 am

      ok…

  37. January 11, 2017 - 9:44 am

    Google

    Very few internet sites that happen to become comprehensive below, from our point of view are undoubtedly very well really worth checking out.

  38. January 14, 2017 - 7:28 am

    Hi to every one, the contents existing at this web site are genuinely remarkable for people knowledge, well,
    keep up the nice work fellows.

  39. January 15, 2017 - 6:58 am

    hello there and thank you for your information – I have certainly picked up
    something new from right here. I did however expertise some technical issues using this
    website, as I experienced to reload the site many times previous to I could get it to load correctly.

    I had been wondering if your hosting is OK?
    Not that I’m complaining, but sluggish loading instances times will very
    frequently affect your placement in google and can damage your high quality score if
    advertising and marketing with Adwords. Well I am adding this RSS to my email and can look out for a lot
    more of your respective interesting content. Make sure you update
    this again soon.

  40. January 17, 2017 - 9:07 pm

    I do not even know how I ended up here, but I thought this post was good.
    I do not know who you are but definitely you’re going to a famous blogger if you are not already ;
    ) Cheers!

  41. January 18, 2017 - 6:22 am

    What’s Taking place i am new to this, I stumbled upon this I have discovered It positively useful
    and it has aided me out loads. I hope to contribute & help other users like
    its helped me. Great job.

  42. January 19, 2017 - 12:14 am

    You are so awesome! I don’t think I have read through something
    like this before. So good to discover someone with a few unique thoughts on this subject matter.
    Seriously.. many thanks for starting this up. This web site is something that’s
    needed on the web, someone with a bit of originality!

  43. January 19, 2017 - 3:43 am

    Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage?
    My blog site is in the exact same area of interest
    as yours and my visitors would definitely benefit from a lot of
    the information you present here. Please let me know if this okay with you.
    Appreciate it!

  44. January 20, 2017 - 11:01 am

    Hi there every one, here every one is sharing these knowledge, therefore it’s pleasant to read this website,
    and I used to pay a visit this webpage every day.

Leave a Reply

Your email address will not be published. Required fields are marked *

Your comments (*)

Name (*)

Your full name please.

Email address (*)

Used for gravatar.

Website

Link back if you want.

EmailEmail
PrintPrint