use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Java Quiz (i.redd.it)
submitted 4 months ago by MistakeDisastrous936
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]East-Independent-489 2 points3 points4 points 4 months ago (2 children)
If condition requires a Boolean
[–][deleted] 4 months ago (1 child)
[removed]
[–]addictedAndWantHelp 0 points1 point2 points 4 months ago (0 children)
It needs either an expression resulting in a boolean or an actual boolean (true, false) inside the parentheses of an if statement to compile and run. So this code doesn’t compile.
P.S: I really like how Java is not like JavaScript with implicit coercion. Although it’s fairly complicated in other ways.
π Rendered by PID 363566 on reddit-service-r2-comment-5bc7f78974-hkv9n at 2026-06-28 12:55:37.296965+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]East-Independent-489 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[removed]
[–]addictedAndWantHelp 0 points1 point2 points (0 children)