java concatenate string and int

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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"