程序代码运行结果是(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-07-07 14:27  清华园  阅读(235)  评论(0)    收藏  举报