1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valina [46]
3 years ago
9

Declare an ArrayList of Strings. Add eight names to the collection. Output the Strings onto the console using the enhanced for l

oop. Sort the ArrayList using the method Collections.sort. Output the sorted List. Shuffle the list, and output the shuffled list. Note that Collections (with an s) is a class, while Collection is an interface. The Collections class has many useful static methods for processing interfaces, including the sort method. Search for a name in the list that exists; output the location where it was found. Search for a name that is not in the list. What location is reported? Convert the list to an array using toArray. Output the elements of the array. Convert the array back into a list using asList. Output the elements of the list.
Computers and Technology
1 answer:
guapka [62]3 years ago
4 0

Answer:

---------------------------

Explanation:

You might be interested in
Write an expression to print each price in stock_prices. Sample output with inputs: 34.62 76.30 85.05
Lana71 [14]

Answer:

Here is the Python program:

stock_prices = input().split() #to take input and splits it into a list

for price in stock_prices: #iterates through stock_prices

   print("$",price) #prints each value of stock_prices with a dollar sign

Explanation:

The program is well explained in the attached comments. I will explain the logic of the program with the help of an example:

Suppose the user enters the following input as stock_prices values

34.62 76.30 85.05

input() method is used to take input from user

split() method is used to split or break this input string and returns a list of strings as:

['34.62', '76.30', '85.05']    

Now the statement for price in stock_prices: iterates through each item of the list and print("$",price) prints each value of list with a dollar sign on the output screen as:

$ 34.62                                                                                                            

$ 76.30                                                                                                            

$ 85.05    

4 0
4 years ago
A threat actor has successfully breached the network firewall without being detected by the IDS system. What condition describes
Mamont248 [21]

Answer:

false negative

Explanation:

A false negative is a dangerous state in which the IDS (Intrusion Detection System) assumes the activity as acceptable in which the activity is actually an attack occurred on the system.

That means, the Intrusion Detection System has failed to catch the attack. This is the most dangerous state, as the systems were compromised and the network or cyber security people were unable to find the attack.

More generally, there are two types of Intrusion Detection Systems ( IDS ). Network based IDSs ( NIDS ) and Host based IDSs ( HIDS ).

5 0
4 years ago
What kind of error is there in this line of code: pritn(“Hello, world!”)?
ivolga24 [154]

Answer:

3.algorithm error

4 0
2 years ago
Read 2 more answers
Which of the following team members are involved in transporting goods directly to customers?
olganol [36]

Answer:

Dave is a regular shopper at Colric Inc., an online company that sells T-shirts. He placed an order for five T-shirts, however when the order arrived, Dave discovered the T-shirts were defective. He returned the order and requested replacements from Colric. This scenario shows an exception to which aspect of a supply chain?

3 0
3 years ago
A _____________ delivers all the files that form web pages
Alexus [3.1K]

The database of the worldwide web delivers all the files that form web pages.

<h3>What is the worldwide web?</h3>

The World Wide Web (WWW), sometimes known as the Web, is the most widely used software platform on the planet  It is an online information space where documents and other web resources can be viewed using a web browser through the Internet.  

The Internet has had a huge impact on people's lives.  It is the major means of communication on the Internet for billions of people throughout the world.

Therefore database of the worldwide web delivers all the files that form web pages.

To know more about the worldwide web follow

brainly.com/question/14715750

#SPJ4

6 0
2 years ago
Other questions:
  • You support Richman Investments, a brokerage firm that employs 20 brokers. Each broker has his own client computer, and the firm
    15·1 answer
  • How do you make your graphics ADA accessible in BlueGriffon?
    12·2 answers
  • Using your idea about how to solve this DUI problem, list two actions you can take that will make more people aware of this issu
    15·1 answer
  • IN JAVA Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin ty
    15·1 answer
  • A(n) _____ is a computer network that uses Internet Protocol technology to share information, operational systems, or computing
    14·1 answer
  • Which program will have the output shown below?
    11·2 answers
  • Which sentence indicates that Jeff is mentioning the visual synopsis in his proposal while planning a media project?
    10·1 answer
  • The letters G, H, T, Y, B, and N are what type of keys?
    15·2 answers
  • Data becomes _____ when it is presented in a context so that it can answer a question or support decision makin
    13·1 answer
  • Microsoft Office PowerPoint 2016 enables you to create robust multimedia _______.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!