| | |
converting integers to string in java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Java Syntax (Toggle Plain Text)
int i = 0; String str = "" + i; // or int i = 0; String str = String.valueOf(i);
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- switch statement on String in Java (Java)
- Array required, but java.lang.String and java.util.Vector found (Java)
- Something about String.split("-"); problem (Java)
- Parse integers from string? (C++)
- Have I gone totally brain dead? cin.get()?? (C++)
- converting double to string (Java)
Other Threads in the Java Forum
- Previous Thread: calling Crystal Reports in Swing
- Next Thread: Editing a pixel
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes clear client code component consumer database draw eclipse ee error event exception fractal free game gameprogramming gis givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javaprojects jni jpanel julia jvm key linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows






