✏️ Explanatory Question

State the output of the following program segment:

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())));

👁 104 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Answer not available right now.