Java Applet Programming Question: Download Java Applet PDF

How do we read number information from my applets parameters, given that Applets getParameter() method returns a string?

Tweet Share WhatsApp

Answer:

Use the parseInt() method in the Integer Class, the Float(String) constructor or parseFloat() method in the Class Float, or the
Double(String) constructor or parseDoulbl() method in the class Double.

Download Java Applet PDF Read All 26 Java Applet Questions
Previous QuestionNext Question
Can we pass parameters to an applet from HTML page to an applet? How?How can I arrange for different applets on a web page to communicate with each other?