Questions tagged «while-loop»

while循环是一种控制结构,用于许多编程语言中,只要满足特定条件,就可以连续执行一组指令。

3
输出-1在循环中变为斜线
令人惊讶的是,以下代码输出: / -1 编码: public class LoopOutPut { public static void main(String[] args) { LoopOutPut loopOutPut = new LoopOutPut(); for (int i = 0; i < 30000; i++) { loopOutPut.test(); } } public void test() { int i = 8; while ((i -= 3) > 0) ; String value = …
54 java  string  while-loop  jvm  jit 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.