> How to repeat a line of code in Java? Best answer 5 stars?

How to repeat a line of code in Java? Best answer 5 stars?

Posted at: 2014-12-18 
private static void Play() {

for (int i=0; i<1000; i++) {

System.out.println("All work and no play makes Jack a dull boy.");

} // end for

} // end Play()

You can do this with loops. for(i = (number); i>(number); i--)

So I have to write a code that prints "All work and no play makes Jack a dull boy." 1000 times in Java

all i can get is:

public class Shining {

public static void main(String [] args) {

Play() ;

}0

private static void Play() {

System.out.println("All work and no play makes Jack a dull boy.") ;

}

}

How can i make it correct?

(the link for the problem is here: http://practiceit.cs.washington.edu/practiceit/problem.jsp?category=Building+Java+Programs%2C+3rd+edition%2FBJP3+Chapter+1&problem=bjp3-1-e16-Shining)