Question: public class Final { public static void main ( String [ ] args ) { String S 1 = Java Programming; String S 2 =

public class Final{
public static void main(String[] args){
String S1= "Java Programming";
String S2=" is taught";
String S3=" in 125";
int iSize = S3.length()+3;
System.out.println(iSize); # 1
char cChar = S1.charAt(10);
System.out.println(cChar) # 2
int iIndex = S2.indexOf("p");
System.out.println(iIndex); # 3
String sSubstr = S1.substring(1,7);
System.out.println(sSubstr); # 4
boolean bEquals = S2.equals(" is taught");
System.out.println(bEquals); # 5
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!