4 ms·
By the way, nobody should ever use "foo".equals(someVariable) anyway. If anything, it should be someVariable.equals("foo"), unless you really know what you're d
by Sandman 13y ago
By the way, nobody should ever use "foo".equals(someVariable) anyway. If anything, it should be someVariable.equals("foo"),
unless you really know what you're doing and are ok with null being a valid value of someVariable.
- deleted 13y ago[deleted]
- snuxoll 13y agoEither style would be fine as long as you check your preconditions.