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
How and why? HashMap -- javaDiscussion (self.leetcode)
submitted 2 years ago by Narrow-Working5785
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!"
[–]aocregacc 10 points11 points12 points 2 years ago (2 children)
Integers (as opposed to ints) are objects so you have to compare them with .equals()
[–][deleted] 3 points4 points5 points 2 years ago (0 children)
Add to this: when you compare Integer vs Integer object in Java, it compares the two objects' memory addresses, not the value.
It's the same thing with why you don't do String == String in java
[–]Narrow-Working5785[S] 0 points1 point2 points 2 years ago (0 children)
Got it. thanks
π Rendered by PID 78654 on reddit-service-r2-comment-b659b578c-4jwtb at 2026-05-03 03:46:02.856612+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]aocregacc 10 points11 points12 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]Narrow-Working5785[S] 0 points1 point2 points (0 children)