Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Simple type conversion question
How do I convert a sequence of variables of type int to a String?




Report this thread to moderator Post Follow-up to this message
Old Post
Dfenestr8
09-29-04 02:28 AM


Re: Simple type conversion question
On Wed, 29 Sep 2004 05:24:00 +0900, Dfenestr8
<chrisdewinN0SPAM@yahoo.com.au> wrote:

>How do I convert a sequence of variables of type int to a String?
http://java.sun.com/j2se/1.4.2/docs...ng.html#valueOf(int)

String intString = String.valueOf(intValue);

--
now with more cowbell

Report this thread to moderator Post Follow-up to this message
Old Post
Bryce
09-29-04 02:28 AM


Re: Simple type conversion question
You don't "convert a sequence of variables of type int to a String" without
providing proper context.

Since you didn't state your problem clearly, assumptions must be made.
You're reading off a java.io.InputStream using the read() method and wish to
convert the raw data to a String.
You do this by using a java.io.InputStreamReader to convert the raw data to
character data.
Then you might consider writing the character data to a java.io.StringWriter
or a java.lang.StringBuffer.

If this assumption is incorrect, state your problem clearly.

--
Tony Morris
http://xdweb.net/~dibblego/



Report this thread to moderator Post Follow-up to this message
Old Post
Tony Morris
09-29-04 02:28 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:44 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.