FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java/day21/code/java/ForDemo.java at master · devenc/Java · GitHub
devenc
/
Java
Public
forked from
DuGuQiuBai/Java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Java
/
day21
/
code
/
java
/
ForDemo.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (25 loc) · 711 Bytes
Breadcrumbs
Java
/
day21
/
code
/
java
/
ForDemo.java
Copy path
File metadata and controls
27 lines (25 loc) · 711 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
循环语句:
初始化:做一些初始操作
条件判断:让我们知道要做多少次
循环体:就是要做的事情
控制条件变化:通过控制条件,让我们在合适的时候结束
*/
class
ForDemo
{
public
static
void
main
(
String
[]
args
) {
//在控制台输出一次"HelloWorld"
System
.
out
.
println
(
"HelloWorld"
);
//在控制台输出十次"HelloWorld"
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
System
.
out
.
println
(
"HelloWorld"
);
//在控制台输出一万次"HelloWorld"
}
}
Back
|
FazBrowse Home
|
New Git URL