65 698
Assignments Done
99,2%
Successfully Done
In October 2018

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()

Expert's answer

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions