1 Star 0 Fork 0

schwarizard / Chapter 11

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Tortoise 363 Bytes
Copy Edit Raw Blame History
schwarizard authored 2016-04-11 19:00 +08:00 . new file
public class Tortoise implements Runnable {
private int totalStep;
private int step;
public Tortoise(int totalStep) {
this.totalStep = totalStep;
}
@Override
public void run() {
while (step < totalStep) {
step++;
System.out.printf("乌龟跑了 %d 步 %n", step);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/schwarizard/Chapter-11.git
git@gitee.com:schwarizard/Chapter-11.git
schwarizard
Chapter-11
Chapter 11
master

Search