You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
611 B

1 year ago
package com.seele;
public class Main {
public int print(int i) {
System.out.println("i: " + i);
try {
Thread.sleep(1000);
}catch (InterruptedException e){
e.printStackTrace();
}
return i + 2;
}
public void run(){
int i = new Trans().getNumber();
while (i < 1000){
try{
i = print(i);
}catch (Exception e){
e.printStackTrace();
}
}
}
public static void main(String[] args) {
Main main = new Main();
main.run();
}
}