結果 : how to check type of object in arraylist java