I wrote a line to add a total up the total value int totalValue = value1 + value2 + value3; now i want to use and if statement to write if (totalValue = 200); but it gives me an error saying "cannot convert from an int to a boolean type". what should i do because i want to have 4 possible outcomes using else if(); System.out.println();
Aucun commentaire:
Enregistrer un commentaire