Wednesday 15 June 2011

java - Iterate For loop for specific time line -


I'm new to Java development, I have a little doubt about how to slow down the loop. I have decided to count the list, and I repeat those who use the loop. I want to redo the count for a fixed time limit. (I.e.) the counting time between 1 and 2 should be delayed for 2 seconds. Is it possible to do this? Pl Guide me on this

public static zero main (string [] args) {for ( Int i = 0; i & lt; 5; i ++) {try {System.out.println (i); Thread.Sleep (2000); } //System.out.println(stem[0]); Grip (Prerupted Pre-Installation) {LoggerGetLogger (JavaApplication 2.ClusGetNanam ()). Logs (level SESEE, ANNEL, X); }}

No comments:

Post a Comment