Theo: I always use one of the "wrapper" objects for basic data types
(Integer, Long, Double, etc) and then use their methods prodvided to get
back a basic data type (such as an int, long, double). Must remember to
check for NumberFormatException in case what you get isn't a number, though.

Mike N.

JavaCorporate Ltd
http://www.javacorporate.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 10, 1999 12:53 PM
To: [EMAIL PROTECTED]
Subject: How do I manipulate input data?


Hi,
I apologise if the following is not a strict servlet related question.

When I get user input from a form by using

    String income = req.getParameter("income");

how can I manipulate income as integer and apply some maths?

Theo

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
  • ... Θεόδωρος Κυριμαλής
    • ... Michael Nash
    • ... Balogh Andras
      • ... Θεόδωρος Κυριμαλής

Reply via email to