Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: .

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default .

    .

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: For loop and if statement incorrect!

    Using a loop to do something once really doesn't make sense. Please explain better. Maybe you could show - type out in a post, no pictures - an example of the desired output.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    5
    My Mood
    Angelic
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: For loop and if statement incorrect!

    Hi! I tried to do something with your given code and got this!
    ...

  4. The Following User Says Thank You to Aika For This Useful Post:

    BellaJava (October 21st, 2013)

  5. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: .

    @BellJava, please don't delete your posts.

    @Aika, please read the forum rules and the following
    http://www.javaprogrammingforums.com...n-feeding.html

  6. The Following User Says Thank You to copeg For This Useful Post:

    Aika (October 21st, 2013)

Similar Threads

  1. How do I loop a switch Statement?
    By Arkeshen in forum Java Theory & Questions
    Replies: 10
    Last Post: August 2nd, 2018, 07:47 AM
  2. [SOLVED] A Loop statement and a switch statement issue
    By sternfox in forum Loops & Control Statements
    Replies: 13
    Last Post: March 7th, 2013, 04:19 PM
  3. How do I loop this if statement?
    By dunnage888 in forum Loops & Control Statements
    Replies: 5
    Last Post: February 10th, 2012, 12:16 PM
  4. Do Loop, Reversing a Number Example, Incorrect Code in Book?
    By djl1990 in forum Loops & Control Statements
    Replies: 3
    Last Post: October 24th, 2011, 07:01 AM
  5. [SOLVED] logic error: cpu assigning incorrect values in for loop
    By Perd1t1on in forum What's Wrong With My Code?
    Replies: 5
    Last Post: July 25th, 2010, 08:13 PM

Tags for this Thread