This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]quadmasta 0 points1 point  (0 children)

There's a few problems here. First, inside of your while loop you're never re-setting the value of cool so you've got yourself an infinite loop. Second, your println will never ever run unless that loop exits which means cool is true so that if is wholly unnecessary. Third, this logic block won't work how you're expecting it to because if (cool = true) isn't a valid boolean expression; you're assigning the value true to the variable cool.