forTest
来源:互联网 发布:人工智能性爱娃娃 编辑:程序博客网 时间:2024/05/17 19:18
还没复杂化break;continue还没用,突然一下学这么多感觉不是很适应。慢慢来吧
public class forTest_
{
public static void main(String[] args)
{
int intA[]={1,2,3,4,5,6,7}; //声明并定义一个数组 intA
for(int i = 0;i < 7; ++i) //预定义一个int类型 i 将 0 赋值给i ; 判断i<7;步进:i自增1
if(intA[i]>3) //判断 当i>3时继续往下执行;若i<3返回继续循环。
System.out.println(intA[i]); // 4,5,6,7
}
}
public class forTest_
{
public static void main(String[] args)
{
int intA[]={1,2,3,4,5,6,7}; //声明并定义一个数组 intA
for(int i = 0;i < 7; ++i) //预定义一个int类型 i 将 0 赋值给i ; 判断i<7;步进:i自增1
if(intA[i]>3) //判断 当i>3时继续往下执行;若i<3返回继续循环。
System.out.println(intA[i]); // 4,5,6,7
}
}
0 0
- ForTest
- forTest
- ForTest
- forTest小记
- ForTest.java
- javaSE 3.2 Fortest
- Day1之ForTest
- 11月29日ForTest
- list_del()
- 数据库索引
- POJ1005
- CCLayer中Touch事件(Standard Touch Delegate和Targeted Touch Delegate)
- HTML浏览器对象的结构
- forTest
- 9.5 不要轻视拷贝构造函数与赋值函数
- Java加上Xtend,满足你对C#语法的所有想象
- 自己动手做个智能小车(1)
- list_entry
- TOJ 1609 Moo University - Team Tryouts
- Non recursive Depth first search
- iOS block教程
- 【剑指offer】快速排序