newbe convert integer to string?

S

Steve

Hi, I need to pass in an integer variable to another process which is
looking for a string.

Is it possible to convert this integer to string first, then pass in?

Thanks
 
L

Lee Weiner

Hi, I need to pass in an integer variable to another process which is
looking for a string.

Is it possible to convert this integer to string first, then pass in?

Look up String.valueOf()

Lee Weiner
lee AT leeweiner DOT org
 
B

Brzezi

nie, 09 maj 2004 o 08:41 GMT, Christian Bongiorno napisa³(a):
int x = 10;

String s = new Integer(x).toString();
Or
String.valueOf(x);

Integer.toString(x);

is posible too.

Pozdrawiam
Brzezi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top