42.5k views
2 votes
If String str = "United States";, then what is the value of str.indexOf("united");?

−1
0
1
2
3

User Dallen
by
5.5k points

1 Answer

4 votes

Answer:

-1

Step-by-step explanation:

due to the fact their is no capital "U" it will -1

User Darryl Hein
by
5.1k points