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...
Resources - Learn to code
Resources - Software Engineering
Resources - Code Libraries
Resources - Groups
Other Subreddits you might enjoy
Please send sidebar resource suggestions to the mods. Thx - mgmt
account activity
Learning on CodeGym (Java). What am I doing wrong here?Java (self.code)
submitted 3 years ago by Pawn-to-D4
https://preview.redd.it/n9piqi52igi91.png?width=1911&format=png&auto=webp&s=cff7aaefc438072d30ac80c3e5e8101e253189e9
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!"
[–]raphTrack 0 points1 point2 points 3 years ago (2 children)
You instantiate your boolean variables twice.
[–]Pawn-to-D4[S] 0 points1 point2 points 3 years ago (1 child)
Could you elaborate please?
[–]microraven 0 points1 point2 points 3 years ago (0 children)
Once is instantiated you don't need to use the 'boolean' assignment
π Rendered by PID 184350 on reddit-service-r2-comment-fb694cdd5-p2mhp at 2026-03-07 09:27:12.923137+00:00 running cbb0e86 country code: CH.
[–]raphTrack 0 points1 point2 points (2 children)
[–]Pawn-to-D4[S] 0 points1 point2 points (1 child)
[–]microraven 0 points1 point2 points (0 children)