Given that String[] str has been initialized, to get a copy of str[0] with all the characters converted to uppercase, you would use the __________ statement.

a. str.uppercase();
b. str[0].upperCase();
c. str.toUpperCase();
d. str[0].toUpperCase();

d. str[0].toUpperCase();

Computer Science & Information Technology

You might also like to view...

A state, condition, or occurrence that Access recognizes is a(n) ____.

A. event B. item C. object D. property

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. When declaring a variable that will refer to a submarine, a good name for the variable is sub. 2. The function Int will always round mixed numbers down to the next lowest integer. 3. Round(dblNum, 2) rounds the value of dblNum to two decimal places. 4. When using the equal sign to assign values, the variable on the left hand side of the equal sign will always receive the value. 5. The variables firstName and firstNAME are identical.

Computer Science & Information Technology