1. 程式人生 > >程序代碼運行結果是(abdcbdcb)

程序代碼運行結果是(abdcbdcb)

return rgs for show bool int clas 代碼 char

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)