samedi 13 novembre 2021

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");
  }
}

}

I try to add ';', but still can't figure out where to put it. help me, please:)

Aucun commentaire:

Enregistrer un commentaire