我這個哪里錯了啊大佬們
public class HelloWorld {
? ? public static void main(String[] args) {
int score = 94;
String sex = "女";
? ? ? ? if(score>80){
? ? ? ? ? ? if(sex.equals("女"){
? ? ? ? ? ? ? ? System.out.print("參加女子組決賽");
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? System.out.println("參加男子組決賽");
? ? ? ? ? ? }
? ? ? ? ? ??
? ? ? ? }
? ? ? ? else{
? ? ? ? ? ? System.out.println("不能參加決賽");
? ? ? ? }
? ? ? ??
? ? ? ??
}
}
2019-07-19
System.out.print("參加女子組決賽");
這里有錯誤 println
2019-07-18
public class HelloWorld {
? ? public static void main(String[] args) {
int score = 94;
String sex = "女";
? ? ? ? if(score>80){
? ? ? ? ? ? if(sex.equals("女")){
? ? ? ? ? ? ? ? System.out.print("參加女子組決賽");
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? System.out.println("參加男子組決賽");
? ? ? ? ? ? }
? ? ? ? ? ??
? ? ? ? }
? ? ? ? else{
? ? ? ? ? ? System.out.println("不能參加決賽");
? ? ? ? } ? ? ??
? ? ? ??
}
}
2019-07-18
找到錯了