on 07-10-2008 8:19 AM
plz suggest a better way to convert "0001" to 0001(int) and back to "0001"(string).
nikhil
Nikhil, Is it the thing you are looking for -
String s ="0001";
int i = Integer.parseInt(s);
System.out.println(i);
String s1 = "000"+i;
System.out.println(s1);
regards,
Sumit Malhotra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
26 | |
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.