Instead, I went with a Samsung Notebook 9 13", and ... it's amazing. https://www.samsung.com/us/computing/windows-laptops/noteboo...
2.2lbs, and I've gone from charging every day to once a week.
182 karma · joined August 24, 2017
Instead, I went with a Samsung Notebook 9 13", and ... it's amazing. https://www.samsung.com/us/computing/windows-laptops/noteboo...
2.2lbs, and I've gone from charging every day to once a week.
And let's be honest, you definitely don't want to 'fix' this by tweaking precedence to include types. That way madness lies. ;)
Definite shout to ubernostrum's commment though - perhaps the confusing thing is that string concatenation is +, but a world of explicit Appends seems horrid, and that ship has very much sailed.
Just be (maybe) glad java doesn't allow generalised operator overloading ;)
http://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#...
(here == means reference not value equality)
"If the value p being boxed is an integer literal of type int between -128 and 127 inclusive (§3.10.1), or the boolean literal true or false (§3.10.3), or a character literal between '\u0000' and '\u007f' inclusive (§3.10.4), then let a and b be the results of any two boxing conversions of p. It is always the case that a == b."