java concatenate string and int

Solutions on MaxInterview for java concatenate string and int by the best coders in the world

showing results for - "java concatenate string and int"
Alessio
11 Nov 2018
1String s1 = "My favourite number is ";
2int n = 5;
3String s2 = s1 + 5; 
4//s2 is "My favourite number is 5"