最新回答 / 慕前端1278149
三种方法,任选一种启动Eclipse/MyEclipse后, 打开"Window -> Preferences -> General -> Workspace", 点Workspace页上的"Startup and Shutdown", 然后勾选"Startup and Shutdown"页中的"refresh workspace on startup"; 用记事本打开"\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs",...
2020-05-13
已采纳回答 / 慕娘2319265
if是条件判断,并不是循环语句,循环语句是while,do while和for,当我们需要计数时,就使用for循环。public class HelloWorld { public static void main(String[] args) { // 变量保存成绩 int score = 53; // 变量保存加分次数 int count = 0; //打印输出加分前成绩 System.out.println...
2020-05-11
String today="2";
if(today.equals("1&&2&&3")){
if(today.equals("2&&4&&6")){
System.out.println("baozi");
}else{
System.out.println("youtiao");
}
}else{
System.out.println("taocan");
}
}
}
if(today.equals("1&&2&&3")){
if(today.equals("2&&4&&6")){
System.out.println("baozi");
}else{
System.out.println("youtiao");
}
}else{
System.out.println("taocan");
}
}
}
2020-05-09