Computer Science, asked by yuvika212005, 1 month ago

(a) Give the output:

String si="Today is Thursday";
String s2=" Karnatka";
String s3="Kerala";

System.out.println(s1.indexOf('d')+s2.lastIndexOf('a'));
System.out.println(s3.substring(0,3));

System.out.println(s3.replace('a',s1.charAt(1)));

System.out.println(s1.substring(6,8)+""+"Happy");

System.out.println(s2.compareTo(s3));​

Answers

Answered by devarajubegaidevaraj
0

Answer:

system.out.println(s3.substring(0,3));

Explanation: hi hi hi hi hi hi hi

Similar questions