赞
踩
- String array[] = { "5555", "6666", "2222", "9999", "1111" };
- int[] number = new int[array.length];
- for (int i = 0; i < array.length; i++) {
- int num = Integer.parseInt(array[i]);// 转换
- number[i] = num;
- }
- System.out.println(number.length);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。