Link to home
Start Free TrialLog in
Avatar of Los Angeles1
Los Angeles1

asked on

Java, How do I caputre a control C from the command line

I wrote a quick java program that runs in an infinite loop.

I want to be able  to capture a CNL - C, and terminate the program with a message

How can I do this, could someone please post an example

Thanks
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)