if((A>B) && (A>C)){
System.out.println("The biggest number is : "+ A);
}
else if((B>A) && (B>C)){
System.out.println("The biggest number is : "+ B);
}
else if((C>A) && (C>B)){
System.out.println("The biggest number is : "+ C);
}
else{
System.out.println("Wrong input!!!");
}
In my code above, if I put the value of string, char, or boolean on the one of var. I will got an error massage instead of the "Wrong input!!!". The type of all data is integer, but why it return to error when I enter the other type of data. why the "Wrong input!!!" not appear?
.
.
.
Sorry for my bad english
Just started to learn programming from java
so please forgive me if it's a dumb question
Thanks all...
Aucun commentaire:
Enregistrer un commentaire