What will be the output of the following: String str = “Sequence of character make string”: System.out.println(str.substring(str.indexOf(„ „),str.lastIndexOf(„ „))); System.out.println(str.startsWith(“of”));
Answers
Answered by
1
Answer:
of character make string
(in the output first space is included but not the last)
False
Similar questions