Jump to content

User:ZeroOne/Sandbox

From Wikibooks, open books for an open world
Computer code
for ( int i=0; i < maxLoopIter; i++ ) {
   System.out.println("Iter=" +i);
   if ( i == 5 )
   {
      break;  // -- 5 iteration is enough --
   }
}