C喜欢在java中使用整数?

reo*_*eox 1 c java syntax

是否有可能在java中有这样的C语法:

            int counter = 10;
            while(counter){
                    System.out.println(counter--);
            }
Run Code Online (Sandbox Code Playgroud)

在C中它很好地计数,直到计数器为0 ...我真的必须写

            int counter = 10;
            while(counter!=0){
                    System.out.println(counter--);
            }
Run Code Online (Sandbox Code Playgroud)

Tho*_*lut 6

不,java需要boolean一个while条件.