1.

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). const(str2.substring(1));System.out.println("WH"+ (str1.substring(2).toUpperCase()));}}output of this program​

Answer»

ong>Answer:

ge

E

Explanation:

SUBSTRING denotes the position of LETTER



Discussion

No Comment Found