Java 写入数组中的元素
如果我有一个monthSales的整数数组,长度显然是12,那么“编写一条语句,将对应于十月的元素写入标准输出”意味着什么Java 写入数组中的元素,java,arrays,Java,Arrays,如果我有一个monthSales的整数数组,长度显然是12,那么“编写一条语句,将对应于十月的元素写入标准输出”意味着什么 写入数组中的元素是否与将所述元素分配给先前定义的变量不同?由于数组索引从0开始,10月份将对应于索引9 System.out.println("Your sales for month of October is" + monthSales[9]); 由于数组索引从0开始,10月份将对应于索引9 System.out.println("Your sales for mon
写入数组中的元素是否与将所述元素分配给先前定义的变量不同?由于数组索引从0开始,10月份将对应于
索引
9
System.out.println("Your sales for month of October is" + monthSales[9]);
由于数组索引从0开始,10月份将对应于
索引
9
System.out.println("Your sales for month of October is" + monthSales[9]);
写入标准输出意味着在控制台屏幕上显示值(通常)。写入标准输出意味着在控制台屏幕上显示值(通常)