I tyeped like this boolean isFun(true); and it said error why?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

what’s the instruction?
what’s the error message?
can you please post the link that goes to the lesson?

If you wanted to set boolean variable isFun to true.then it should be like

boolean isFun = true ;


#3

I typed like this;

boolean isFun = true;
I was fed up and closed the sight. I came back this morning, and the error sign was gone…
Maybe I needed a space between e of “true” and semicolon, “;”?

I appreciate your reply though!
Thank you,


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.