Multiple Choice
Which String class method will remove spaces from the beginning and the end of a string?
A) truncate()
B) trim()
C) clean()
D) strip()
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: Which of the following statements about using
Q30: Consider the following code snippet. Scanner inputFile
Q31: Which of the following statements about exception
Q32: Insert the missing code in the following
Q33: Consider the following code snippet: throw IllegalStateException("This
Q35: Insert the missing code in the following
Q36: Your program must read in an existing
Q37: Which of the following code snippets about
Q38: Consider the following code snippet: try<br>{<br>File inputFile
Q39: Assume that inputFile is a Scanner object