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, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
Answers: 1
question
Computers and Technology, 24.06.2019 15:20
Local area networks use many of the same network technologies and the internet, only on a smaller scale. devices that access lans are equipped with a network interface that contains circuitry for wireless or wired connections. devices also have a physical address, in addition to the ip addresses acquired from a dhcp server. the most popular wired technology is . the most popular wireless technology is , which can be configured as a(n) or star topology. setting up a lan and configuring its router is fairly easy. the first step is to change the standard to one that is secure. next, create a(n) that uniquely identifies the network by name. it is also important to activate wireless to prevent wireless signals from being intercepted during transmission. a limited-access network can be created for visitors to use. by activating , the router will be able to assign ip addresses to each device that joins the network. to connect to a secure lan that is protected by encryption, an encryption , or password, is required. lans can be used to access data collected by iot devices and the networks that tie these devices together. technologies such as rfid, nfc, bluetooth smart, zigbee, and z-wave offer -power links, essential for battery-powered devices that can’t expend excess amounts of energy transmitting data.
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
History, 05.02.2020 10:47
question
Chemistry, 05.02.2020 10:47
Questions on the website: 13722359