[英]how i solve this "illegal start of expression" "not a statement" " ';' expected"
public class UTSTesting {
public static void main(String[] args){
int bil = 0;
if((bil > 0) && (bil % 2 == 0)){
System.out.println("Genap Positif");
}else if((bil < 0) && (bil % 2 == 0)){
System.out.println("Genap Negatif");
}else if((bil > 0) && (bil %2 == 0)){
System.out.println("Ganjil Positif");
}else((bil < 0) && (bil %2 == )){ /// this where the error show up///
System.out.println("Ganjil Negatif");
}
}
}
我嘗試添加“;”,但仍然不知道將它放在哪里。 請幫幫我:)
} else {
System.out.println("Ganjil Negatif");
}
// 或者
}else if ((bil < 0) && (bil % 2 == 0 )){ /// this where the error show up
System.out.println("Ganjil Negatif");}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.