If I have
'String t = "";
int i = 1;
double d = 3.3;'
May I do
t = t + " " + i + " " + d
or I need to cast?
If I have
'String t = "";
int i = 1;
double d = 3.3;'
May I do
t = t + " " + i + " " + d
or I need to cast?
Yes you can..No need to cast..
Simply you can do like you said, t = t + " " + i + " " + d;
No. You don't
t = t + " " + i + " " + d --> "New" String = string + " " + String.valueOf(integer) + " " + String.valueOf(double)