I'm not using
Java's Console class right now--I just have a command line program that I want to run indefinitely because it's checking and logging some stuff on a server. Right now, it runs indefinitely because it's in a while(true) loop, so I was wondering if I could replace true with some code that's checking for like a Ctrl-E (for end) given by the user, or something like that. Is there any easy way to check for that? I suppose it's not really that necessary since I can just terminate the JVM, but, if there's an easy way, it'd be nice...
Thanks!