Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Timed Loop
02-28-2008, 07:41 PM #1
- Join Date
- Feb 2008
- Thanked 0 Times in 0 Posts
I am currently working on a program where you imput a number (Zero or One) and you hit a button printing out a line(Motor 1 is pushed). My teacher wants me to make a timed loop that runs for 2 seconds then prints "Both motors are moving forward."
The problem is I have no knowledge of timed loops! I know how to do a loop in java, but as far as having the loop hold for 2 seconds then print something is beyond me. How do I go about doing this?
02-28-2008, 09:01 PM #2
"To iterate is human, to recurse divine." -L. Peter Deutsch