Aug 16, 2001 #1 Kruzer Programmer Joined Jun 16, 2000 Messages 117 Location 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 Joined Aug 3, 2000 Messages 984 Location 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 Joined Mar 26, 2001 Messages 340 Location 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