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++;
}
}
}
时间: 2024-11-13 10:43:57