How to concatenate int values in java?

Posted by Shamli on Stack Overflow See other posts from Stack Overflow or by Shamli
Published on 2010-04-20T11:42:07Z Indexed on 2010/04/20 11:43 UTC
Read the original article Hit count: 209

hi,

I have the following values:

int a=1; 
int b=0;
int c=2;
int d=2;
int e=1;

How do i concatenate these values so that i end up with a String that is 10221; please note that multiplying a by 10000, b by 1000.....and e by 1 will not working since b=0 and therefore i will lose it when i add the values up.

Thnks you in advance.

© Stack Overflow or respective owner

Related posts about java

Related posts about concatenation