import java.util.*;
public class ExitLoop {
public static void main(String[] args) {
int i = 0;
while (i < 100) {
if (i == 20)
break;
System.out.println("i : " + i);
i++;
}
}
}
Posted inJAVA