String.valueOf() is used to convert integer to String.
Sample Code:
int day, month, year;
day = 1;
month = 10;
year = 2015;
String todayDate = String.valueOf(month) +
'/' + String.valueOf(day) +
'/' + String.valueOf(year);
String.valueOf() is used to convert integer to String.
Sample Code:
int day, month, year;
day = 1;
month = 10;
year = 2015;
String todayDate = String.valueOf(month) +
'/' + String.valueOf(day) +
'/' + String.valueOf(year);