文章标题
来源:互联网 发布:站长工具端口 编辑:程序博客网 时间:2024/05/01 12:43
package com.bb;
/**
* @author Administrator
*使用循环操作Java数组
*/
public class Demo7 {
public static void main(String[] args) {
int[] scores={1,2,3,4,4,5,43,66,7};
for (int i = 0; i < scores.length; i++) {
System.out.println(“数组中第”+(i+1)+”个元素是:”+scores[i]);
// System.out.println(scores[12]); 数组越界
}
String[] hh={“aa”,”dd”,”ddd”,”sss”,”eee”};
for (int i = 0; i < hh.length; i++) {
System.out.println(hh[i]);
}
}
}
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- jsp注释和声明
- apt-get: command not found
- “XML Parser Error on line 1: 前言中不允许有内容。”问题解决方法
- 修改文件 访问(access)、修改(modify)、改变(change)时间
- 文章标题
- 当表单中中只有一个文本框类型的的input
- 1008 QSC and Master (区间dp)
- 不同语言正则表达式使用小例
- MySQL数据库查询多行合并的问题
- NAT123内网转发LINUX环境开机自动启动防掉线脚本
- jsp总结之九大内置对象
- 指针和字符的初始化
- pcap文件格式分析