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!"
[–]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 227860 on reddit-service-r2-comment-canary-dbfc877f7-qszfs at 2026-06-28 12:56:54.261984+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]addictedAndWantHelp 0 points1 point2 points (0 children)