如果Set<String>需要转换为Set<Integer>,不能用强转的方式,需要使用:Integer[] array = set.toArray(new Integer[]{});进行转换。
转载于:https://my.oschina.net/studyguohezu/blog/776668
如果Set<String>需要转换为Set<Integer>,不能用强转的方式,需要使用:Integer[] array = set.toArray(new Integer[]{});进行转换。
转载于:https://my.oschina.net/studyguohezu/blog/776668