当前位置: 技术问答>java相关
请问:不做循环能直接把Integer[]转为int[]吗?
来源: 互联网 发布时间:2015-02-28
本文导语: | no! | Integer in = new Integer(7); int i = in.intValue(); :) | no!no!no! | Integer[] in = new Integer[9]; int[] i = Array.newInstance(int,in)
|
no!
|
Integer in = new Integer(7);
int i = in.intValue();
:)
int i = in.intValue();
:)
|
no!no!no!
|
Integer[] in = new Integer[9];
int[] i = Array.newInstance(int,in)
int[] i = Array.newInstance(int,in)