🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8757

Re: String to int/ int to String

#8757
From: Torsten Welches
Date: Fri, 02 Mar 2001 09:52
16 lines
1363 bytes
"stephen" <chinafax1@cmmail.com> wrote:
>How to convert String to int and how to convert int to String

int i = Integer.parseInt(aString);
String s = String.valueOf(i);
   
>out.print(date) in JSP how to convert the date to String 
>to let it output

The PrintStream's print method will automatically convert
the Date to a String using String.valueOf(date).
You can convert each Object to a String using the toString() method.
If you need another date display format: see DateFormat.format...

Torsten
Technical Details
Message-ID: <3a9f6d54$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65
References: <3a9f66c8_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9aa1905fb483408c
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-02 01:56:04 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: String to int/ int to String
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <3a9f66c8_2@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a9f6d54$1_1@dnews>
Date: 2 Mar 2001 01:52:20 -0800
X-Trace: 2 Mar 2001 01:52:20 -0800, 207.105.83.65
Lines: 17
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65