Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: stop infinite loop #6186
    green
    Member

    Dear Yutaka:

    thank you for your reply.

    I have seen solution by other softwares:

    One is scite for windows
    https://sourceforge.net/project/showfiles.php?group_id=2439&package_id=5662&release_id=584805

    tools > stop executing

    Another is ultraedit. When executing java, the command prompt will be activated so program can be stopped with ctrl_c

    I am pretty sure you’ll come up with a brilliant solution.

    regards,
    green

    in reply to: stop infinite loop #6176
    green
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)