Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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();
}

maybe output close needs to be outside the brackets of
the outer loop?output.close();
}instead maybe:
}
output.close()

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |