subject

The following is intended to return the location of the first instance of the string the user enters from the keyboard, -1 if not found. string names [] = new string[20]; //assume array is initialized system. out. println(“enter a name to search for: “); string lookingfor = scan. nextline(); int found = -1; for (int i = 0; i < names. length; i++) { if ( /* missing code */ ) { found = i; break; } } which of the following could replace /* missing code* / so that it works as intended? 1. lookingfor. equals(names[i]) 2. lookingfor. equals(names[i]) 3. lookingfor ! = names[i] 4. lookingfor. equals names) 5. lookingfor [i].equals(names[i])

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
You know the right answer?
The following is intended to return the location of the first instance of the string the user enters...
Questions
question
Mathematics, 04.11.2021 14:00
question
Mathematics, 04.11.2021 14:00
Questions on the website: 13722360