. Suppose that you have the following statements:
String str;
str = "Java programming: from problem analysis to program design";
What is the value of the following expressions?
a. str.indexOf("analysis")
b. str.substring(5, 16)
c. str.startsWith("Java")
d. str.startsWith("J")
e. str.endsWith(".")
Comments
Leave a comment