What will be the output of the following program?
public class ForForever {
static int i = 0;
public static void main(String[] args) {
for (int i = 0; check(i); i++) {
System.out.print(i + "~" + ForForever.i + ",");
}
}
private static boolean check(int j) {
i = j;
return i < 3;
}
}