You can even run the program inside of emacs. (The idea is "stay in emacs; keep your
hands on the keyboard.") To do this, we first need to create a DOS shell *inside*
emacs. (This also works on unix) Type in:
M-x shell < RETURN >
This creates a little dos window inside an emacs buffer. (This is handy for debugging lenghty output that might otherwise scroll too fast in a Windows-based DOS terminal.) Then, type in:
java lab10
just like in a dos window. Nice, eh? To get back to your coding buffer, select the "Buffers" menu or type in C-x b < TAB > to see a list of available buffers.
AN EVEN COOLER WAY!
Type: C-c C-v C-r
This will automatically run the compiled file, just as java lab10
does!