Either an Error or I just really don't understand booleans

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

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

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

I just started the intro to Java, I thought it would be very useful to learn to supplement my knowledge of HTML/CSS, but I seem to have gotten stuck very early on.

My problem is the following:

I need to take ‘boolean isFun’ and set the boolean value to ‘true’
A very easy task, no?

BUT, either I don’t at all understand booleans or there’s an error with the page.
The correct code should look like ‘boolean isFun(true);’, right? Or have I missed something somewhere?

<do not remove the three backticks above>

HI if it’s java it should be like that

boolean isFun = true;

Thank you so much, I guess I just misunderstood how I was supposed to be doing it!

1 Like

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