1 Star 0 Fork 0

CS-IMIS-23/20172305TX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BasicArray.java 1007 Bytes
一键复制 编辑 原始数据 按行查看 历史
三金 提交于 2018-04-11 10:20 +08:00 . 重新修改PP7.4的测试类
//*************************************************************************************
// BasicArray.java Author: Lewis/Loftus
//
// Demonstrate basic array declaration and use.
//*************************************************************************************
public class BasicArray
{
//--------------------------------------------------------------------------------------------------
// Creates an array, fills it with various integer values, modifies one value, then prints them out.
//--------------------------------------------------------------------------------------------------
public static void main(String[] args)
{
final int LIMIT = 15, MULTIPLE = 10;
int[] list = new int[LIMIT];
// Initialize the array values
for (int index = 0; index < LIMIT; index++)
list[index] = index * MULTIPLE;
list[5] = 999; // change one array value
// Print the array values
for (int value : list)
System.out.print(value + " ");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/20172305TX.git
git@gitee.com:CS-IMIS-23/20172305TX.git
CS-IMIS-23
20172305TX
20172305TX
master

搜索帮助