I am trying to do something in Java and I need something to wait / delay for an amount of seconds in a while loop.
while (true) { if (i == 3) { i
You need to use the Thread.sleep() call.
Thread.sleep()
More info here: http://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html