java servlet help

When I use the doGet method, how can I get an integer input?
That is, when I create an string using
String sometext = request.getParameter(“textname”); it gives me the user input in a string format, what if i want to get a integer input?
Integer someint = ?

I don’t know much about servlets, but you can just parse it into an integer.

int someint = Integer.parseInt(sometext);

ah…thank you