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
vovikov84 [41]
3 years ago
9

Write a method called listUpper() that takes in a list of strings, and returns a list of the same length containing the same str

ings but in all uppercase form. You can either modify the provided list or create a new one.Examples:listUpper(list("a", "an", "being")) -> list("A", "AN", "BEING")listUpper(list("every", "gator", "eats")) -> list("EVERY", "GATOR", "EATS")listUpper(list()) -> list()In this format:public List listUpper(List list){}
Computers and Technology
1 answer:
pav-90 [236]3 years ago
3 0

Answer:

//method listUpper takes a list of strings as parameter

public List<String> listUpper(List<String> list)

{ List<String> finalList= new ArrayList<String>();

//finalList is created which is a list to display the strings in upper case

for(String s:list){ //loop iterates through every string in the list and converts each string to Upper case using toUpperCase() method

s = s.toUpperCase();

finalList.add(s); } //finally the upper case strings are added to the finalList

return finalList; } //return the final list with uppercase strings

Explanation:

The method listUpper() works as follows:

For example we have a list of following strings: ("a", "an", "being").

finalList is a list created which will contains the above strings after converting them to uppercase letters.

For loop moves through each string in the list with these strings ("a", "an", "being"). At each iteration it converts each string in the list to uppercase using toUpperCase() and then add the string after converting to uppercase form to the finalList using add() method. So at first iteration "a" is converted to A and added to finalList, then "an" is converted to uppercase AN and added to finalList and at last iteration "being" is converted to BEING and added to finalList. At the end return statement returns the finalList which now contains all the string from list in uppercase form.

You might be interested in
Does anyone know the answer to 2 and 3
docker41 [41]
No because u ain’t put the question up here for someone to answer
6 0
3 years ago
What formula would you enter to add the values in cells b4, b5, and b6?
Semenov [28]
=SUM(b4:b6)  If it doesn't show the $ sign just make sure it's in currency :)  I hope this helped!! Good Luck!!! :)
4 0
4 years ago
What uses HTML hypertext links that users can click to access different locations or information?
zalisa [80]

Answer:

a button

Explanation:

I am not too familiar with HTML terminology (self-taught), but button (classes?) use hypertext links to access different locations on a website.

I'm pretty sure the syntax is something like <button = *stuff*>

4 0
3 years ago
Compare and contrast the properties of a centralized and a distributed routing algorithm. give an example of a routing protocol
Naily [24]

Answer and Explanation:

Centralized : Central node in the system gets whole data about the system topology, about the traffic and about different hubs. This at that point transmits this data to the particular switches. The benefit of this is just a single hub is required to keep the data. The hindrance is that if the focal hub goes down the whole system is down, for example single purpose of disappointment.

Distributed: Distributed nodes gets data from its neighboring hubs and afterward takes the choice about what direction to send the parcel. The weakness is that if in the middle of the interim it gets data and sends the parcel something changes then the bundle might be deferred.

Example :

Link State takes Centralized approach

Distance Vector takes Decentralize approach

8 0
3 years ago
Provides images of weather systems, and helps to track storms at different altitudes
olasank [31]
A weather satellite is used to monitor weather systems and the climate of the earth. Weather satellites have two types orbits. They can either have near-polar orbit or geostationary orbit. The former has lower altitudes and covers the complete Earth. The latter, on the other hand, stays put in one spot, and is found in higher altitudes.
6 0
4 years ago
Other questions:
  • What is the curriculum of digital literacy
    6·1 answer
  • A _______ record is responsible for resolving an ip to a domain name.
    9·1 answer
  • Which microphones are considered to have the best quality?
    12·2 answers
  • What makes us see continuously moving images when still images appear in rapid succession
    11·1 answer
  • In C++ :
    6·1 answer
  • A user who has special security and access to a system, such as the right to assign passwords, is called a ____.​ a. ​ technical
    8·1 answer
  • In reference to computer communications, what does the term noise mean?
    8·2 answers
  • A small cluster of three countries (China, Malaysia, and Korea) are creating a reputation for this type of outsourcing. a. Farsh
    6·1 answer
  • How does one skip videos on edgenuit
    7·1 answer
  • C code
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!