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, 21.06.2019 16:00
How do i draw hello world in python and how do i make it loop?
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
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, 28.07.2019 20:20
question
Mathematics, 28.07.2019 20:20