✏️ Explanatory Question
String str1 = "great"; String str2 = "minds"; System.out.println(str1.substring(0,2).concat(str2.substring(1))); System.out.println(("WH" + (str1.substring(2).toUpperCase())));
The final value stored in variable x is 6.0 and y is 15.0.
Explanation: