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: Code stopping, need help fast.

  1. #1
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,699
    Thanks
    25
    Thanked 334 Times in 310 Posts

    Default Code stopping, need help fast.

    NEVER MIND, I'm an idiot. Its because of the semicolon I left after the while loop statement...

    My program just seems to be pausing at a point and I dont know why. It is pretty urgent because I need this to work so I can make a report at work.

    int dateInformationStart = 0;
    		    String tempValueDate = workBook.getText(dateInformationStart,1);
    		    System.out.println("Check3");
    		    while(tempValueDate.equals("") && dateInformationStart<workBook.getLastRow());
    		    {
    		    	System.out.println("DataInformationStart: "+dateInformationStart);
    		    	System.out.println(workBook.formatRCNr(dateInformationStart,1,false));
    		    	dateInformationStart++;
    		    	tempValueDate=workBook.getText(dateInformationStart,1);
    		    }
     
    		    System.out.println("Check4");

    After the program passes System.out.println("Check3"); and before the program enters the while loop, it just stops running. It doesnt pass over the loop, it just comes to a stop. What could cause this?
    Last edited by aussiemcgr; August 11th, 2010 at 09:40 AM.


  2. #2
    Member
    Join Date
    May 2010
    Posts
    36
    Thanks
    0
    Thanked 13 Times in 12 Posts

    Default Re: Code stopping, need help fast.

    Quote Originally Posted by aussiemcgr View Post
    NEVER MIND, I'm an idiot. Its because of the semicolon I left after the while loop statement...

    don't be so hard to you, this can happen.

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,699
    Thanks
    25
    Thanked 334 Times in 310 Posts

    Default Re: Code stopping, need help fast.

    No, I just do it alot, and I dont pay enough attention when something like this happens, so I dont find the issue. I'm an idiot for overlooking where the issue so obviously could have been.