Java start and stop an infinite loop using for (;;) by pressing a key

后端 未结 0 1502
傲寒
傲寒 2021-02-14 06:22

I want to start and stop an infinite loop by pressing a key. I have the first part of my code that does the infinite loop:

package test;
import java.awt.Robot;

p         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题