genzou #6470(2008/06/12 14:21 GMT) [ Groovy ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
def stop = false def outThread = new Thread({ while(true){ Thread.sleep(1000) while(stop){ Thread.sleep(1000) } print 'a' } } as Runnable).start() while(true){ switch(System.in.newReader().readLine()){ case "q": System.exit(0) break; case "p": stop = !stop break; } }
Rating0/0=0.00-0+
[ reply ]
genzou
#6470()
[
Groovy
]
Rating0/0=0.00
def stop = false def outThread = new Thread({ while(true){ Thread.sleep(1000) while(stop){ Thread.sleep(1000) } print 'a' } } as Runnable).start() while(true){ switch(System.in.newReader().readLine()){ case "q": System.exit(0) break; case "p": stop = !stop break; } }Rating0/0=0.00-0+
[ reply ]