Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: How to convert integer to string


Message #1 by "Brandon Ng" <nodnarb_33@y...> on Tue, 14 Aug 2001 13:50:21
String stotal=String.ValueOf(iPrice);

good luck

----- Original Message -----
From: "Brandon Ng" <nodnarb_33@y...>
To: "Pro_JavaServer_Pages" <pro_jsp@p...>
Sent: Tuesday, August 14, 2001 1:50 PM
Subject: [pro_jsp] How to convert integer to string


> How do i change a int back to string?
>
> <%
>     if (hoteldata != null) {
> while (hoteldata.next()) {
> String price = hoteldata.getString(1);
>
> %>
>
> <%
> int iPrice=Integer.parseInt(price);
> int itotal=iPrice + iPrice;
> %>
>
> how to convert itotal back to String

  Return to Index