Java no memo

自分のためのJavaメモ。

2016-02-17から1日間の記事一覧

Exception

-- -- ArithmeticException 0で除算。 ArrayIndexOutOfBoundsException -- IndexOutOfBoundsException -- InterruptedException 他スレッドによる割り込み。 NoSuchElementException キューが空の場合 NullPointerException -- NumberFormatException -- Num…

基本型とラッパークラス

基本型にはメソッドがない。 ラッパークラスを使う。 |基本データ型|ラッパークラス| |---|---| |boolean|Boolean| |char|Character| |byte|Byte| |short|Short| |int|Integer| |long |Long| |float|Float| |double|Double| オートボクシング ラッパークラス…