September 6, 2008 at 4:20 pm #6179
Yutaka Emura
Keymaster
green wrote:
after compile java, when execute, i want to stop the infinite loop, what can i do?e.g.
class Lo
{
public static void main(String[] args)
{
for(int i = 1; i > 0; i++)
{
System.out.println(“hi”);
}
}
}in this case, the loop will print hi nonstop since the condition always fulfill
when execute with command prompt, i can stop it with ctrl_c
but when execute with emeditor, what can i do to stop it?
it doesn’t mean only infinite loop, but how to stop java program during execution with emeditor …thx.
Currently, you will need to end the process from Windows Task Manager. I will research whether EmEditor can send the signal equivalent to Ctrl+C. Thank you!