I'm new to Java, and I want to know if it is possible to break a while loop from an if/for loop inside, for example:
while(true)
{
for(i=0;i<=10;i++)
{
if(i==9) break;
}
}
This will terminate the for loop(I think?), but how do I terminate the while loop when i reaches 9?