This code only outputs 4's and I don't know why. Is it maybe because of the static main or why? thanks
class Calculator {
public static void main(String[] args) {
int x = 3;
boolean op = false;
int pi = 1;
for(int i = 0; i < 99999999; i++) {
if(op == false) {
pi = pi - 1 / x;
op = true;
x = x+2;
System.out.println(pi*4);
} else if(op == true) {
pi = pi + 1 / x;
op = false;
x = x+2;
System.out.println(pi*4);
}
}
}
}