{"blog_url":"https://aoking.hatenablog.jp/","image_url":null,"height":"190","blog_title":"\u306b\u3087\u304d\u306b\u3087\u304d\u30d6\u30ed\u30b0","url":"https://aoking.hatenablog.jp/entry/20110415/1302824606","title":"Arrays.asList \u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u914d\u5217\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u304f\u308c\u306a\u3044","provider_name":"Hatena Blog","description":"\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u914d\u5217\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u304f\u308c\u306a\u3044\u3002 \u3044\u3084\u3001\u6b63\u78ba\u306b\u306f\u30ea\u30b9\u30c8\u5316\u306f\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u306e\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u914d\u5217\u5168\u4f53\u3092\u5358\u4e00\u306e\u8981\u7d20\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u6975\u3081\u3066\u76f4\u611f\u3068\u7570\u306a\u308b\u52d5\u4f5c\u3092\u3059\u308b\u3002 //OK Integer[] intArray = {1,2,3}; List<Integer> list = Arrays.asList(intArray); //NG int[] primitiveIntArray = {1,2,3}; List<Integer> list = Arrays.asList(primitiveIntArray); \u4e0a\u8a18\u306eNG\u30d1\u30bf\u30fc\u30f3\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u901a\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002 int[]\u2026","type":"rich","version":"1.0","categories":["Java"],"author_url":"https://blog.hatena.ne.jp/shawshank99/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faoking.hatenablog.jp%2Fentry%2F20110415%2F1302824606\" title=\"Arrays.asList \u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u914d\u5217\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u304f\u308c\u306a\u3044 - \u306b\u3087\u304d\u306b\u3087\u304d\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"shawshank99","published":"2011-04-15 08:43:26","provider_url":"https://hatena.blog","width":"100%"}