import java.util.Scanner;
public class haohao {
public static void main(String[] args) {
printwrods();
}
public static void printwrods(){
for (int i = 0; i < 10; i++) {
System.out.println("hello word!");
}
}
}
运行结果:
hello word!
hello word!
hello word!
hello word!
hello word!
hello word!
hello word!
hello word!
hello word!
hello word!