12. I am trying to set the boolean variable 'isComplete' to true


#1

I have the same question. I am trying to set the boolean variable 'isComplete' to true by doing the following, and it is not working. I keep getting the error: Generalizations.java:5: error: not a statement
boolean isComplete; true;
^
1 error
My code:

public class Generalizations {
public static void main(String[] args) {

//My single line comment
boolean isComplete; true;
int awesomeLevel;
int epicLevel;
/*System.out.println(epicLevel);*/

}

}


12. Generalizations #2 Boolean isComplete true
#2

semi-colon(:wink: end the statement, to assign a value to something you use the equal sign (=).
So your code should be like this boolean isComplete = true;


#3

Thanks alot Objectace49403. that was very helpful