I'm studying for intro comp sci test tomorrow and need to be able to determine the value of different operations. With my calculations t should be equal to 8. But when compiling it returns 11. Why does it run the second if? 2 is not greater than 3. I know it's probably just a misunderstanding problem but it would really help out. Thanks in advance.
public class Prac {     
    public static void main(String []args){
        int i=4, j=3, k=10;
        float r=3, s=2, t=5;
        boolean done = false;
        if (s*2 >= j && t >= s) {
            if (s>j)
                s++;
            t = t * s;
        } else
            t += s;
        t++;
        System.out.println(t);
    }
}
 
    