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.
Code java:
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?
Re: Code stopping, need help fast.
Quote:
Originally Posted by
aussiemcgr
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.
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.