语法不正确 - 而(3 <x <10)

Mat*_*yen -4 java syntax syntax-error

有什么方法可以表达这个?我知道以下语法不正确.

而(3 <x <10)

Sim*_*mY4 5

试试这个

while(3 < x && x < 10)
Run Code Online (Sandbox Code Playgroud)