How to convert integer to String Selenium JAVA WebDriver?

How to convert integer to String Selenium JAVA WebDriver?

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);

Leave a Reply