Java Silver取得を目指して、毎日コツコツ勉強中です。 このnoteでは、学んだことを整理して記録しています。 同じように勉強している方の参考になったらうれしいです! var はローカル変数の宣言時に使える型推論キーワード。 右辺の初期化式から型を推論 ...
These include Java SE 7 proposals, Optimized Null Check, and Kinga Dobolyi ‘s thesis Changing Java’s Semantics for Handling Null Pointer Exceptions. Among the many things we can already do rather ...
この記事の仲間です。 DBからぽんと取ったデータはBigInteger、こっちで比較しなきゃいけないデータはIntegerで困りましたね。 BigIntegerの方が桁数がでかいので、BigIntegerの方にあわせてあげる こっちのDBはIntegerから溢れることはないだろうという想定で設計さ ...
In a previous blog post, I looked at the subtle handling required to handle double with BigDecimal. As I discussed in that post, using the BigDecimal(double) constructor rarely does what one would ...