オブジェクトのArrayListを作成しましたが、整数と文字列の両方が含まれています。
List<Object> arrayList = new ArrayList<>();
以下の条件を使用して、整数かどうかを確認しました
if(arrayList.get(indexValue) instanceof Integer){
// Here how convert the object into integer
}
しかし、問題は、どうすればオブジェクトを整数に変換できるかということです。
ありがとう