Aug 16, 2001 #1 Kruzer Programmer Jun 16, 2000 117 US I know how to convert a String to a integer, can't remember how to do the other. Do I use the charAt()? newValue = Integer.parseInt(value); String newStringValue = ???? Dano dskryzer@hotmail.com What's your major malfunction
I know how to convert a String to a integer, can't remember how to do the other. Do I use the charAt()? newValue = Integer.parseInt(value); String newStringValue = ???? Dano dskryzer@hotmail.com What's your major malfunction
Aug 16, 2001 #2 wushutwist Programmer Aug 3, 2000 984 US Very easy actually: Code: newValue = Integer.parseInt(value); String newStringValue = newValue.toString(); Wushutwist Upvote 0 Downvote
Very easy actually: Code: newValue = Integer.parseInt(value); String newStringValue = newValue.toString(); Wushutwist
Aug 16, 2001 #3 LeonTang Technical User Mar 26, 2001 340 SG Hey, which are you looking for? Integer to String or String to Integer (your topic and explaination in your first post is different... Anyway I will list out the following ways... String to Integer: Integer a = new Integer(value); Integer to String: String a = value.toString(); String to int: int a = Integer.parseInt(value); int to String: String a = ""+value; Leon Upvote 0 Downvote
Hey, which are you looking for? Integer to String or String to Integer (your topic and explaination in your first post is different... Anyway I will list out the following ways... String to Integer: Integer a = new Integer(value); Integer to String: String a = value.toString(); String to int: int a = Integer.parseInt(value); int to String: String a = ""+value; Leon