Code Comments
Programming Forum and web based access to our favorite programming groups.How do I convert a sequence of variables of type int to a String?
Post Follow-up to this messageOn 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
Post Follow-up to this messageYou 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/
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.