2017-03-03から1日間の記事一覧
There are three choices as follows: List<String> list = Arrays.asList("1","2"); List<Object> objectList = (List) list; List<Object> objectList2 = (List<Object>)(List) list; List<Object> objectList3 = new ArrayList<Object>(list); But the choice 1 and 2 seem to be dangerous because the ex</object></object></object></object></object></string>…