Answers for "java how to attach strings with integer"

0

java concatenate string and int

String s1 = "My favourite number is ";
int n = 5;
String s2 = s1 + 5; 
//s2 is "My favourite number is 5"
Posted by: Guest on July-28-2021

Code answers related to "java how to attach strings with integer"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language