In applets, we can display numerical values by first converting them into strings and then using the drawstring() method of Graphics class we can do this easily by calling the valueOf() Method of String class. Let us consider an example:
This applet runs using the following HTML file:
No comments:
Post a Comment