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 3 of 3

Thread: 2nd time not executed while in my program

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 2nd time not executed while in my program

    How to repeat the while Statement in java

    try
    {

    while(rs.next())
    {

    exx = rs.getInt("ID");
    exxx = Integer.toString(exx);

    if( empid.getText().equals(exxx))
    {

    String names = rs.getString("NAME");
    ename.setText(names);


    } break;
    }

    }
    catch (SQLException err)
    {
    JOptionPane.showMessageDialog(null, err.getMessage());

    }


  2. #2
    Member
    Join Date
    Jul 2012
    Posts
    71
    Thanks
    1
    Thanked 7 Times in 7 Posts

    Default Re: 2nd time not executed while in my program

    u just posted this same thread.... for conversations involving the same topic post on the same thread don't create a new one

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,294
    Thanks
    180
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: 2nd time not executed while in my program

    Please read the forum rules. Thread locked as duplicate

Similar Threads

  1. For loop, the first command in the loop does not get executed the 2nd time..
    By lina_inverse in forum Loops & Control Statements
    Replies: 1
    Last Post: October 16th, 2012, 09:00 PM
  2. For loop does not execute the first command after 2nd time
    By lina_inverse in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 16th, 2012, 08:41 PM
  3. [SOLVED] How much time should I have on a program?
    By SOG in forum Java Theory & Questions
    Replies: 17
    Last Post: July 19th, 2011, 05:28 PM
  4. please help me with this program, I dont have enough time to do it
    By n.azizabadi in forum Member Introductions
    Replies: 1
    Last Post: June 10th, 2011, 03:35 AM
  5. how to make a program take time...
    By DLH112 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 10th, 2010, 06:09 PM

Tags for this Thread