Question: Consider the following statement: String str = new String ( Learning Java in 2 1 days ) ; Which of the following statements will
Consider the following statement:
String str new StringLearning Java in days";
Which of the following statements will print the str string into lowercase, print index of the first a character, and print the length of the str string?
A
System.out.printlnstrtoLowerCase;
System.out.printlnstrindexOfa;
System.out.printlnstrlength;
B
System.out.printlnstrLowerCase;
System.out.printlnstrindexOfa;
System out.printlnstrlength
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
