hey, i need to make an id. the first 3 numbers are 202, the second 2 are randomly generated, and the last one is an integer, which we get from somewhere else. the problem is the final value has to be stored in a long but i cant get the numbers together because the program just adds the integer values, instead of concatenating.
does anyone know how i can do this.
heres an example:
int x= a random number(say 2)
int y = another random number(say 3)
int z= 1
long id=202+ x+y+z;
except i dont want them added i want
long id= 202231
does anyone know how i can do this.
heres an example:
int x= a random number(say 2)
int y = another random number(say 3)
int z= 1
long id=202+ x+y+z;
except i dont want them added i want
long id= 202231
Comment