
372 • Java Programming
Explanation: In the HTML file for the applet two
parameters, N1 and N2, are passed with integer value
20 and 40, respectively. As all the parameters are
String by default so they have to be converted into
integer before processing them. In the init method
using the Integer.parseInt method they have
been converted into integer and stored into n1 and
n2, respectively. Next, maximum of the n1 and n2
are found and stored in m . Later it is converted into
String str which is displayed.
By the way, if anything is put besides PARAM tag
between <APPLET> and </APPLET> , it will be ignored
by any browser that ...