>   Hello there. Does anybody know how to cast a variable of
> type Integer into
> int? Thanks in advance.

Use the intValue() method.

example:

Integer myInteger = new Integer ("123");
int value = myInteger.intValue ();

The API documentation for Integer is on java.sun.com at the following URL.
http://java.sun.com/j2se/1.3/docs/api/java/lang/Integer.html

There are other convinience methods in there too.

The full API documentation is at
http://java.sun.com/j2se/1.3/docs/api/index.html

Regards,
Peter


**********************************************************************

Check us out at http://www.syntegra.com

**********************************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to