The ____________ method removes all leading and trailing spaces from a string.
a. Remove
b. No Spaces
c. Trim
d. Remove Space
c. Trim
You might also like to view...
What does the output statement in main() print out? What is wrong with the implementation of factorial() in this class?
``` public class BadFactorial { private int n; public static long factorial () { if ( n == 1 ) // base case; recursion ends return 1; // return a result else { // recursive case: update input size to // get closer to base case and iterate again n = n – 1; return n * factorial(); } } public static main() { n = 4; System.out.println("factorial 4 is " + factorial() ); } } ```
Which of the following are uses of the ping utility? (Choose all that apply.)
A. testing the host connection B. testing access over a WAN connection C. testing the HTTP protocol D. testing TCP port 23
Which of the following is one of the two color models that Photoshop uses to describe the color of a pixel?
A. HGP B. GBR C. GRY D. HSB
What is wrong with the following style?ol { list-style-type: square;}
A. This is the style for an unordered list, and the selector should be changed to ul. B. The value of a square cannot be used for ordered lists. C. Nothing; the style is correct. D. both a and b