程序代码运行结果是(abdcbdcb)

Posted 清-华-园

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了程序代码运行结果是(abdcbdcb)相关的知识,希望对你有一定的参考价值。

public class Test {

          public static boolean show(char ch) {

                    System.out.print(ch);

                    return true;

          }

          public static void main(String[] args) {

                  int x = 1;

                  for (show(‘a‘); show(‘b‘) && x < 3; show(‘c‘)) {

                      show(‘d‘);

                      x++;

                 }

         }

}

以上是关于程序代码运行结果是(abdcbdcb)的主要内容,如果未能解决你的问题,请参考以下文章