Matching
Match each term with the correct statement below.
Premises:
Change the length of a string in a StringBuilder object
Takes two integer arguments: a start position and an end position
Add characters to the end of a StringBuilder object
Takes a String argument and returns its double value
A memory block
Returns the lowercase equivalent of the argument
A named object of the String class
Determines whether a specific character occurs within a String
Add characters at a specific location within a StringBuilder object
Responses:
parseDouble()
buffer
String variable
append()
substring()
toLowerCase()
insert()
setLength()
indexOf()
Correct Answer:
Premises:
Responses:
Change the length of a string in a StringBuilder object
Takes two integer arguments: a start position and an end position
Add characters to the end of a StringBuilder object
Takes a String argument and returns its double value
A memory block
Returns the lowercase equivalent of the argument
A named object of the String class
Determines whether a specific character occurs within a String
Add characters at a specific location within a StringBuilder object
Premises:
Change the length of a string in a StringBuilder object
Takes two integer arguments: a start position and an end position
Add characters to the end of a StringBuilder object
Takes a String argument and returns its double value
A memory block
Returns the lowercase equivalent of the argument
A named object of the String class
Determines whether a specific character occurs within a String
Add characters at a specific location within a StringBuilder object
Responses:
Related Questions
Q25: System.out.println("Your name is " + yourName); The
Q35: The _ method converts any object to
Q37: To alter just one character in a
Q38: myCounty = "Clark Jackson Scioto" <br>myCounty.charAt(6) <br>Using
Q48: When you compare String s with the
Q56: The terms "literal string" and "string literal"
Q59: How is the String class equalsIgnoreCase() method
Q70: The methods of the Character class that
Q73: Why would you use the append() method?
Q79: String s and other objects that can't