Question: class Main{ public static void main(String[] args) { String s1 = mohammed; String s2 = saleh; String result=s1. concat(s2.toUpperCase()); System.out.println(Result= + result);} } The output
class Main\{ public static void main(String[] args) \{ String s1 = "mohammed"; String s2 = "saleh"; String result=s1. concat(s2.toUpperCase()); System.out.println("Result=" + result);\} } The output is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
