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