subject

Write a method called findnames that meets the following specs: it takes two arguments: a list of strings, allnames, and a string, wanted creates and returns a new list containing only the strings from, allnames, that contain the name stored in wanted as a substring. list allnames should remain unmodified: do not delete, or modify the names in it. this should work in a case insensitive manner, but the names in your result list should be exactly as they are in a (i. e. not converted to lower case). we referred to allames and what the method retums as 'lists', but you are free to represent cach one of them however you want: array or arraylist. no error checking needed. example behavior: if allnames is: ["bob smith", "elroy jetson", "christina johnson", "rachael baker", "chris conly"] and wanted is "chris" the resulting list, should be: ["christina johnson", "chris conly"] because only those two strings contain "chris"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Look at the circuit illustrated in the figure above. assume that the values of r1 and r2 are equal. if you connect your meter’s test probes to points a and b in the circuit, which of the following voltages would you measure
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
How are stop motion special effects in animated films created
Answers: 1
You know the right answer?
Write a method called findnames that meets the following specs: it takes two arguments: a list of...
Questions
question
Chemistry, 07.12.2020 21:00
question
Chemistry, 07.12.2020 21:00
question
History, 07.12.2020 21:00
question
Health, 07.12.2020 21:00
Questions on the website: 13722367