程序代码运行结果是(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++;

                 }

         }

}

posted @ 2017-09-25 16:27  清-华-园  阅读(300)  评论(0编辑  收藏  举报