Answer to Question #66131 in Java | JSP | JSF for David

Question #66131
III. Assume that a String identifier sentence references the String below
sentence = “This is my first real homework.”;
(5 points)
What is the value of each expression below?

sentence.length()


sentence.charAt(3)


sentence.toLowerCase()


sentence.toUpperCase()
1
Expert's answer
2017-03-10T20:08:05-0500

public class Solution {
public static void main(String[] args) {
String sentence = "This is my first real homework.";

System.out.println(sentence.length());
System.out.println(sentence.charAt(3));
System.out.println(sentence.toLowerCase());
System.out.println(sentence.toUpperCase());
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS