Menu

#194 Box for System.out output

open
nobody
5
2004-02-24
2004-02-24
No

Story:
User calls System.out.println("foo") or calls a method
which calls System.out.println. A box is drawn in the
Interactions Pane, much like the one for receiving
input from System.in, and "foo" is printed in green
inside the box.

Notes:
A significant number of students in the CS1 course at
University of Washington have been confused about the
difference between returning a value and printing it
with System.out.println. Having a stronger distinction
than green vs. black text in DrJava's Interactions Pane
would help reinforce this difference.

This approach would follow the precedent set by
DrScheme (which we have modeled for reading input from
System.in). It's worth noting that the user could
still get a "normal" view of the output by viewing the
console tab-- this would just set apart System.out
input in the Interactions pane.

The one thing that could be complicated is trying to
figure out how and when to print things in the same box.

Discussion