We want to display the new value of sum to the user of the Addition applet.
To do this, we display the result in the status bar at the bottom of the appletviewer window (or browser window).
showStatus(Integer.toString(sum) );
showStatus
is a method of the
Applet
class that takes a
String
as its argument, and displays that string in the
status bar
.
The "method"
Integer.toString(sum)
takes an
int
as its argument (in this case sum), and returns its representation as a
String
.