Answers for "java concatenate number"

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"

Java Answers by Framework

Browse Popular Code Answers by Language