CS 245
Sept. 22, 2004
emacs
), compile, and run a small Java
application. This program should interactively read positive integers,
each on a single line, stopping when a 0 is entered. It should then print
the largest integer read. Look back at Prog.java
if you've
forgotten how to do console I/O.
script
to record a script of compiling and running your
program (read the man
page script
to learn how to use it.
Use pine
to e-mail the script to me as an attachment.
emacs
tutorial. From the command line, run
emacs
and use the C-h t
command to start the tutorial.
jdb
,
try setting some break points, single-stepping your program, and examining
variable and object values. Before running jdb
, compile your program
with debugging enabled:
javac -g Prog.javaNext, start
jdb
and have it load your class file:
jdb Prog