Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

motivation for cloud computing

Answered: 1 week ago