Answers for "in java when a numeric variable is concatenated to a string using the"

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 "in java when a numeric variable is concatenated to a string using the"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language