今天遇到如下问题:
public class Test {
public static void main(String[] args) {
if (…) {
System.out.println(“a”);
} else {
System.out.println(“b”);
}
}
在…的地方填写什么代码,会让程序输出”ab”?
联想到上学期计算机系统中学习的通过fork创建子进程的机制以及在某实验中写的如下代码(参考了网上的代码):
JPanel jpanel = new JPanel()
今天遇到如下问题:
public class Test {
public static void main(String[] args) {
if (…) {
System.out.println(“a”);
} else {
System.out.println(“b”);
}
}
在…的地方填写什么代码,会让程序输出”ab”?
联想到上学期计算机系统中学习的通过fork创建子进程的机制以及在某实验中写的如下代码(参考了网上的代码):
JPanel jpanel = new JPanel()