For String c = "hello world";

The Java statements
int i = c.indexOf('o');
int j = c.lastIndexOf('l');
will result in:

a. i = 4 and j = 8.
b. i = 5 and j = 8.
c. i = 4 and j = 9.
d. i = 5 and j = 9.

c. i = 4 and j = 9.

Computer Science & Information Technology

You might also like to view...

Where does the Reviewing pane appear?

A) directly above the status bar B) on the left side of the screen C) on the right side of the screen D) directly below the Ribbon

Computer Science & Information Technology

By clicking the Chart Elements button, you can add, move, or remove data labels

Indicate whether the statement is true or false.

Computer Science & Information Technology