《ShowYou数组代码》第39题:创建基本类型一维数组 public class Test { public static void main(String[] args) { int[] s = new int[10]; for(int i = 0;i < s.length;i++) { s[i] = 2 * i + 1; System.out.println(s[i]); } } }