Question: Method name charAt(index) indexOf(str) Length() replace(stri, str2) substring(index1, index2) or substring(index1) toLowerCase() toUpperCase() Type Returns.... char the character at the given index the index

Method name charAt(index) indexOf(str) Length() replace(stri, str2) substring(index1, index2) or substring(index1) toLowerCase()
toUpperCase() Type Returns.... char the character at the given index the index

Method name charAt(index) indexOf(str) Length() replace(stri, str2) substring(index1, index2) or substring(index1) toLowerCase() toUpperCase() Type Returns.... char the character at the given index the index where the start of the given (String appears in this string (or -1 if not found) the number of characters in this (String a new string with all occurrences of str1 changed to str2 int int String the characters in this string String from index1 (inclusive) to index2 (exclusive); if index2 is omitted, grabs till end of string String a new string with all lowercase letters String a new string with all uppercase letters Write the results of each expression with Strings in "quotes" and characters in 'single quotes. Hint: String's index starting at 0. A String with 10 characters has the indices 0-9! 11 index 0123456789012345 String strl="Frodo Baggins"; String // String stri String str2 index 0123456789012345 "Frodo Baggins"; "Gandalf the GRAY"; Istri.length str2.charAt(0) stri. indexOf("o") str2.toupperCase() strl.substring(4) str2.substring(3, 14)

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!