String str1 = "great"; String str2 = "minds";
System.out.println(strl.substring(0,2).concat(str2.substring(l)));
System.out.println(("WH"+ (strl.substring(2).toUpperCase())));
Answers
Answered by
4
Answer:
Explanation:
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
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())));
}
}
Attachments:
Similar questions
Economy,
4 months ago
English,
4 months ago
Psychology,
8 months ago
Physics,
11 months ago
English,
11 months ago