sorry but after search and mutltiple test i can't get to transform an integer into chararchter
i tried
int i;
char j;
j=i.charValue();
or
int i;
string j;
j=i.toString();
none would work
sorry but after search and mutltiple test i can't get to transform an integer into chararchter
i tried
int i;
char j;
j=i.charValue();
or
int i;
string j;
j=i.toString();
none would work
i and j in your examples are primitive types. Primitive types don't have any methods because they are not classes.
You need to use the wrapper classes for those types to use those methods you are trying to use:
or even better, directly with the static method:Code:int i = 7; Integer num = new Integer(i); String s = num.toString();
shmooveCode:int i = 7; String s = Integer.toString(i);