Google

Interview Questions Test your java skills Java API Reference Notifications Java Forums Java Examples Tell a Friend
Link to us Donate
Javagalaxy.com WWW
Subscribe Un Subscribe

Java Interview Questions on your mobileNew            

Java Interview Questions - JavaGalaxy.com

 Java Interview Questions

Back to Interview questions

AuthorMessage
JavaGalaxy

Question: When an user wants to send an int from HTML what does he needs to do?

Answer: Either the user wants to send an int or a String, it will be the same. Here are steps he might do to get an int

[html]
[applet code="Launch.class" archive="bak.jar" width=740 height=460]
[param name="mynum" value="098765"]
[/applet]
[/html]

And within the init() of your applet, Use the following line to get the value.

String mynum = getParameter("mynum");
int x = Integer.parseInt(mynum);

Discuss in detail



Copyright © 2002 - 2010 JavaGalaxy.com,
All Rights Reserved Advertise| Feedback| Contact us| Terms of Use| Privacy Policy|

Help us to keep serving you better.
If you find any part of this site useful please support the site by linking to us