The outer while loop did not executed

Dell OPTIPLEX 745
October 8, 2009 at 21:30:33
Specs: Microsoft Windows XP Professional, 3.189 GHz / 1013 MB
Tell me why the outer loop did not executed after inner loop finish. If there is another solution for this please advise.


while ((strLine = br.readLine()) != null)

{

while ((strLine1 = br1.readLine())!= null)
{
if (!strLine.equals(strLine1))
{
System.out.println("ouput");
output.write(strLine);
output.write(newline);
}

else

{
System.out.println("constraint");
output.write("constraint");
output.write(newline);
}
}

output.close();
}


See More: The outer while loop did not executed

Report •


#1
October 9, 2009 at 01:47:57
Perhaps because br only has one line?

Report •

#2
October 11, 2009 at 20:38:21
maybe output close needs to be outside the brackets of
the outer loop?

output.close();
}

instead maybe:
}
output.close()


Report •

Related Solutions


Ask Question