Write a program which prints 1000 “Hello World”.
Input
There is no input for this problem.
Output
The output consists of 1000 lines. Print “Hello World” in each line.
Sample Input
No input
Sample Output
Hello World Hello World Hello World Hello World Hello World Hello World Hello World . . . . . . Hello World
Solutions:
public class Main {
public static void main(String[] args) {
for (int i = 0; i < 1000; i++) {
System.out.println("Hello World");
}
}
}