Quantcast
Channel: 質問!ITmedia 新着質問(Java/253)
Viewing all articles
Browse latest Browse all 2439

List(integer)の比較

$
0
0
List(integer)をif文で評価した際に、 java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer と怒られてしまいます。キャスト等が必要なのでしょうか? 原因と対処が知りたいです。 以下のような、使い方をしています。 ----- List list; if(list.get(0) > 100){ } -----

Viewing all articles
Browse latest Browse all 2439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>