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

Java 戻りの型が2つあるメソッド

$
0
0
@SuppressWarnings("unchecked") public static E get(List list, int offset) { E array = (E) list.toArray(); return array[offset]; } なんでpublic static E get(List list, int offset)じゃだめなんですか?

Viewing all articles
Browse latest Browse all 2439

Trending Articles



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