Computer Science, asked by atulranjan457, 8 months ago

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 luisecubero77
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