Assume the availability of an instance variable arr that refers to an ArrayList of Strings. Write a helper method concatAll that returns the concatenation of all the Strings in the ArrayList in the order in which they appear in the ArrayList

Answers

Answer 1

Answer:

Explanation:

The following code is written in Java and is a method that takes in an ArrayList as a parameter, it then loops through the ArrayList and adds each element to the instance variable called arr as well as a space between each element (this can be removed by deleting the " "). Finally, it prints the final result of the variable arr to the screen.

public static void concatAll(ArrayList<String> myArr) {

       String arr = "";

       for (int x = 0; x < myArr.size(); x++) {

           arr += myArr.get(x) + " ";

       }

       System.out.println(arr);

   }


Related Questions

File details such as the document title and author name are called ____.


Backstage details


User Descriptions


User-defined fields


Document properties

Answers

Answer:

Document properties

Explanation:

From the list of given options, document properties answers the question.

Every computer file has its details which include (but not limited to) the file name, file type, file permission, date etc.

The above details and many more are makes it easy to identify files.

To get a document property, right click on the file/document, select properties, then select the details tab.

On the details tab, you will see a comprehensive list of the properties attributed to that particular documents

Discuss TWO changes in ICMP that took place with the development of IPV6 and indicate why those changes were made.

Answers

Answer:

Over and above basic medication signaling, but instead of signaling, ICMPv6 could be used for other objectives. It could be utilized for the below description.

Explanation:

That falls into the same category even though IPv4 does through ARP.  

Neighbor Discovery:

Used mostly for control of hosts but instead multichannel interface setup.  

Router Discovery:

Trying to manage Handheld IPv6 hand-offs.  

Throughout IPv6, within a week of negligible and sometimes more broadcast group, this same ICMPv6 response can begin. The whole last extension connector before another ICMPv6 connector contains a 58-value new Header field.

im trying to call the keys in a dictionary I have called "planet_dict". in order for them to be included in the for loop, the values of the keys have to be within a range of
273 <= x <= 373
I understand how to do this with certain values, but idk how to call them from a dictionary.

Answers

You can do something like this. My code iterates through the dictionary keys and then we use that key to get a value. We check if the value is between 273 and 373 and if it is, it's a water planet. My code is just a general idea of what to do. Instead of printing, you could add the key to a list and then print the contents of the list.

Zahid needs to ensure that the text flows around an image instead of the image being placed on a separate line as the text. Which tab on the Layout dialog box should Zahid use to perform this task? Position Text Wrapping Size He can’t do this on the Layout dialog box.

Answers

Answer:

I believe the answer is He can't do this on the layout dialog box

Explanation:

You use the format tab for text wrapping.

( Sorry if I'm wrong )

Answer:

B.) Text Wrapping

Explanation:

I think that's the right answer. It's how you can make the text flow around an image in doc so I assume it's right. I'm really sorry if it's wrong :(

The home keys on the numeric keypad are 4, 5, and 6.

True
False

Answers

Answer:

true, The home keys for the numeric keypad are 4 5 6

TRUE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

To solve the difficulty of scaling memory organization, memories are physically organized into a ____-dimensional organization.
A) one
B) two
C) three
D) multi

Answers

The answer is D) multi

Why should you study media critically? (4 reasons)

Answers

Answer:

Media provides a framework for understanding the media and helps enable us to interpret and evaluate media messages for ourselves. Media literacy skills are closely related to critical thinking skills, as they challenge us to think more deeply about not only what we see, but what we know. Like geography, because the media define for us our own place in the world. Like science and technology, the media help us to learn technology by adopting the leading edge of modern technological innovation.

Explanation:

Write a program to determine what change a cashier should return to a customer. The program will ask how much an item being purchased costs, and then how much the customer paid. The program will return what change should be given.

Enter the item cost: 7.12
Enter what customer paid: 20.00

The total number of cents to be returned is: 1288

Change given should be
Number of 10 dollar bills: 1
Number of 5 dollar bills: 0
Number of 1 dollar bills: 2
Number of quarters: 3
Number of dimes: 1
Number of nickels: 0
Number of pennies: 3

it needs to be in c++ not java

Answers

Using the knowledge in computational language in C++ it is possible to write a code that  determine what change a cashier should return to a customer.

Writting the code:

#include <iostream>

using namespace std;

int main() {

// your code goes here

cout << "Enter the item cost : ";

double cost;

cin >> cost;

cout << "\nEnter what customer paid : ";

double paid;

cin >> paid;

double ret;

ret = paid - cost;

cout << "\nThe total number of cents to be returned is : " << ret;

cout << "\nChange given should be";

int ten,five,one;

ten = ret/10;

ret = ret - (10*ten);

five = ret/5;

ret = ret - (5*five);

one = ret/1;

cout << "\nNumber of 10 dollar bills : " << ten;

cout << "\nNumber of 5 dollar bills : " << five;

cout << "\nNumber of 1 dollar bills : " << one;

return 0;

}

See more about C++ at brainly.com/question/12975450

#SPJ1

why was the keyboard invented, write a paragraph and you can get a crown and 50 points

Answers

Answer:

The keyboard was invented for the alphabet and numbers so people can talk to others and work on essays, and have a way to communicate to human beings and for stuff like i'm doing right now, writing paragraphs for stuff like this and for school, really the keyboard was invented for anything, you can use it for anything in the whole world.

Explanation:

Hope this helps!!

The keyboard was invented so people can type on a computer

Write a grammar for the language consisting of strings that have n copies of the letter a followed by the same number of copies of the letter b and the the same number of copies of the letter c, where n >0. For example, the strings abc, aaaabbbbcccc, and aaaaaaaabbbbbbbbcccccccc are in the language but a, abbc, bac, and aaabbbcc are not

Answers

Answer:

def language(mystring, n):

   if n > 0:

       string_list = [x for x in mystring]

       string_cont = ""

       for character in string_list:

           string_cont += character * n

       print(string_cont)

Explanation:

When n is equal to 0, that is, n=0, The python program multiplies the characters of the string "mystring" by the integer variable "n" to output a string with all characters with the same count.

If the old and new systems are operated side by side until the new system has proven itself, this type of system conversion plan is parallel implementation. True or false?

Answers

Answer:

True

Explanation:

True or False(T or F): Point-and-shoot cameras have only 1 lens. *

Answers

Answer:

True

Explanation:

Technically speaking they only have one.

PYTHON HW PLEASE HELP. I NEED THE ACTUAL CODE!!! 100 POINTS AND BRAINLIEST. REPORTING IF YOU DON'T ANSWER
Question 1:

Design a BankAccount Class with the following requirements:

1. Class variables
- Overdraft Fee = 20 (Overdraft fee is subtracted from the account when account balance is negative after a withdraw)
2. Object variables
- Balance (Balance is the amount of money an account has left)
3. Methods
- deposit(amount): Accepts an argument amount of type number, adds this amount to account's balance
- withdraw(amount): Accepts an argument amount of type number, subtract this amount to account's balance, if the resulting balance is negative, apply an Overdraft Fee on the account balance

Test your class to see if it works:
- Scenario 1:
- Create a new account called "college_checking", assign 1000 dollars to the initial balance.
- Withdraw 200 dollars
- Withdraw 500 dollars
- Deposit 100 dollars
- Withdraw 600 dollars
- Check your remaining balance, it should be -220 dollars of balance, because $1000 - $200 - $500 + $100 - $600 - $20(overdraft) = $-220

- Scenario 2:
- Create a new account called "europe_trip_fund", assign 0 dollars to the initial balance.
- Deposit 250 dollars
- Deposit 220 dollars
- Deposit 530 dollars
- Withdraw 721 dollars
- Check your remaining balance, it should be $279 dollars of balance, because $0 + $250 + $220 + $530 - $721 = $279


Question 2:

Design a OverdraftProtectionAccount that inherits from BankAccount Class with the additional requirements:

1. Methods
- withdrawal(amount): Accepts an argument amount of type number, subtract this amount to account's balance, if the resulting balance is negative, log an error message:
"There's insufficient funds in your account to complete this transaction"
to the terminal and stop the transaction so that your balance isn't overdrafted.


Test your OverdraftProtectionAccount class to see if it works:
- Scenario 3:
- Create a new account called "personal_checking", assign 100 dollars to the initial balance.
- Withdraw 20 dollars
- Withdraw 50 dollars
- Deposit 12 dollars
- Withdraw 60 dollars
- Check your remaining balance, it should be 42 dollars of balance, because $100 - $20 - $50 + $12 = $42, the last withdrawal didn't go through because that would leave your account balance negative.

Answers

Answer:

Here maybe this will help you

Explanation:

. What is a one-dimensional basic component in art and geometry

Answers

Answer:

a straight line

Explanation:

Anything one dimensional can only be a line

What is a common practice that enterprise organizations will implement to ensure the users of a network and a Mobile Device Management solution will comply with?

Answers

Answer:

Acceptable use policy.

Explanation:

An acceptable use policy also known as fair use policy can be defined as a set of rules and guidelines defined by the original owner or administrator in charge of a service, website, web resources or network in order to regulate privileges, control the way the resources are used and to prevent any unauthorized access or usage by others.

Hence, an acceptable use policy is a common practice that enterprise organizations will implement to ensure the users of a network and a Mobile Device Management solution will comply with.

Generally, acceptable use policy are used in various organizations, schools, public spaces to ensure every users comply with it.

Which of these are illegal activities? Check all that apply.

running a pyramid scheme
offering free gifts
threatening to harm property
downloading a virus
hacking a computer

Answers

Answer:

Offering free gifts

Explanation:

Answer:

ace

Explanation:

Custom Offers empower Sellers to upsell even higher than their Premium Packages—but when should a Custom Offer be used?

Answers

Answer:

s

Exdplanation:

Computer science students typically get hands-on experience in all of the following EXCEPT:

writing code

testing programs

creating a blueprint for a house

fixing program errors

Answers

Answer:

C. Creating a blueprint for a house.

Creating a blueprint for a house is not a typical activity within the curriculum of computer science students.

Hence the correct answer is C.

Computer science students typically get hands-on experience in writing code, testing programs, and fixing program errors.

These activities are fundamental to learning programming and software development.

However, creating a blueprint for a house is not a typical activity within the curriculum of computer science students. This task is more closely related to fields such as architecture or civil engineering, where professionals design physical structures.

Creating a blueprint for a house involves architectural design and planning, which is not typically part of a computer science curriculum. While some computer science concepts can be applied to architectural design software, the two fields have distinct focuses and skill sets.

Hence the correct answer is C.

Learn more about computer science click;

https://brainly.com/question/35123324

#SPJ3

_________________ component defines the correct granularity for access controls and oversees the relationships between identities, access control rights, and IT resource availability.

Answers

Answer:

Authorization component defines the correct granularity for access controls and oversees the relationships between identities, access control rights, and IT resource availability.

Explanation:

Access control is a security technique that verifies the permission that a person or device has to enter an area and to what extent. This function is within the identity and access management of a company. Authorization is the definition of what a specific user can do within an application, that is, to what information and operations they have access, in other words, it refers to the management of access to protected resources and the process of determining whether a user is authorized to access a particular resource. Authorization and access control are ways of enforcing access policies. Authorized persons may access certain resources for their job functions and identify and audit the accesses made.

What is power point?​

Answers

Answer:

PowerPoint is an electronic presentation program that helps people present a speech using a collection of slides.

Explanation:

Answer:

Power point is a presentation program released in 1987

Explanation:

the following section of psudo code inputs a number n, multiplies together 1 x 2 x 3 x ..... x n, calculates input number/sum and output result of the calculations.
locate 3 errors and suggest a corrected piece of code.

INPUT n
FOR mult = 1 TO n
sum = 0
sum = sum * mult
result = n / sum
NEXT
PRINT result

Answers

Answer:

INPUT n

sum = 1

FOR mult = 1 TO n

sum = sum*mult

NEXT

result = n/sum

PRINT result

Explanation:

sum should not be defined inside the for loop because it will reset to the initial number after every loop iteration which is not what is desired. Sum should not be 0 if it is being multiplied then divided. This will cause an error. Result should be calculated after sum has settled on a final number, after the loop has finished.

Your company just installed a new web server within your DMZ. You have been asked to open up the port for secure web browsing on the firewall. Which port should you set as open to allow users to access this new server?

Answers

Answer:

The port that should be set open to allow users to access this new server is:

TCP port.

Explanation:

Ports are openings or entrance doors through which data packages have access to a PC or server.  TCP and UDP are transport protocols with port numbers.  TCP means Transmission Control Protocol.  They are used to connect two devices over the internet and other networks.  UDP means User Datagram Protocol.  They are used to connect applications and to speed the transfer of data.  Comparatively, UDP is faster, simpler, and more efficient than TCP.  TCP enables retransmission of lost data packets, which UDP cannot do.


A technician assists Joe, an employee in the sales department who needs access to the client database, by granting him
administrator privileges. Later, Joe discovers he has access to the salaries in the payroll database.
Which of the following security practices was violated?
Principle of least privilege
Strong password policy
Entry control roster
Multifactor authentication

Answers

Answer:

Principle of least privilege

Explanation:

The principle of least privilege means the user has only access to that data which is required to complete the task

Therefore as per the given situation, Joe who is an emloyee wants to access the client data base but later on he needs to access the payroll data base

So as per the given situation, the first option should be violated

Hence, the same is to be considered

Jeremy has created a snippet of JavaScript. Which event handlers will he use to invoke JavaScript from his HTML form?

onClick
SelectedIndex
onCheck
onSubmit
inputText

Answers

Answer:

One of them is OnClick, but there are more.

Explanation:

I took my post test and only clicked OnClick and I missed this one and it says "not all correct answers chosen"

Answer:

The TWO correct answers are:

onClick

onSubmit

g The method of mapping where each memory locationis mapped to exactly one location in the cache is

Answers

Answer:

Direct Mapped Cache

Explanation:

Given that a Direct Mapped Cache is a form of mapping whereby each main memory address is mapped into precisely one cache block.

It is considered cheaper compared to the associative method of cache mapping, and it is faster when searching through it. This is because it utilizes a tag field only.

Hence, The method of mapping where each memory location is mapped to exactly one location in the cache is "Direct Mapped Cache"

write an algorithm to sumn of even numbers from 1 to 10​

Answers

Answer:

1. Start

2. Evensum = 0

3. For I = 1 to 10

3.1 If I % 2 == 0

3.1.1 Evensum = Evensum + I

4. Print Evensum

5. Stop

Explanation:

The line by line explanation is as follows:

[The algorithm starts here]

1. Start

[This initializes Evensum to 0]

2. Evensum = 0

[This iterates from 1 to 10, inclusive]

3. For I = 1 to 10

[This checks if current number is even number]

3.1 If I % 2 == 0

[If yes, this adds the even number]

3.1.1 Evensum = Evensum + I

[This prints the sum after the sum]

4. Print Evensum

[This ends the algorithm]

5. Stop

I have no idea what I’m doing and this is due in 45 minutes

Answers

Answer:

Not enough info...

Explanation:

A(n) is an internal corporate network built using Internet and World Wide Web standards and products.

Answers

An intranet  is an internal corporate network built using Internet and World Wide Web standards and products.

What is the definition of intranet?

This is known to be small or restricted computer network used by a group to communicate with one another is described as an intranet. An intranet is a private computer network that only employees of a specific workplace can access. noun.

The kind of internet utilized privately is an intranet. Since it is a private network, only authorized users can access the intranet. The intranet has a small user base and only offers a little amount of information to its users. various network types

An intranet is a computer network used exclusively by employees of a company for information exchange, improved communication, teamwork tools, operational systems, and other computing services.

Therefore, An intranet  is an internal corporate network built using Internet and World Wide Web standards and products.

Learn more about intranet  from

https://brainly.com/question/13139335
#SPJ1

why is operating system important software for computer?give 3 reasons

Answers

Answer: See explanation

Explanation:

The operating system of a computer is required to manage both the hardware components and the computer's software.

Also, it helps in managing the processes and the memory or the computer.

Lastly, it helps in communication as well as the detection of errors. It should be noted that the operating system of a computer is a very important tool.

Your supervisor has asked you if it is possible to monitor servers for potential port scans via SNMP. What two OIDs can you provide to your supervisor that may show when a port scan is in progress

Answers

Explanation:

The two OIDs can you provide to your supervisor that may show when a port scan is in progress are:

UdpNoPorts

TcpOutRsts

UdpNoPorts and TcpOutRsts may show when a port scan is in progress.

Other Questions
Which is more, 13 feet or 4 yards? Which sequence describes the formation of a gamete?A.transcription replication translationB.replication cell division I cell division IIC.mitosis cell division I translationD.cell division I cell division II transcription Tell me what you guys think! Improvements? Diana worked on her science project for 513 hours. Gabe worked on his science project 114 times as long as Diana. Paula worked on her science project 34 as long as Diana. How long did Gabe and Paula work on their projects? What does the word uninhabitable mean in this paragraph?1. unreasonableO 2unattractiveO 3. unhappy04. unlivable(Personal info at the bottom thats why theres a piece of paper) Through Fredos actions and character, the author develops several themes, including _____. Select all that apply. responding to injustice fighting government control growing up human connection There are 14 reams of paper in a case. How many total reams of paper are in 13 cases? a b c d ?? pleas help me out Part AWhat is a central idea of "The Ride of His Life"?Fishermen should only be allowed to fish with onekind of netO Sea turtles help keep the ocean environment healthy.Senko is most concerned with saving endangeredsea turtlesScientists can use modern technology to help savethe environment.Part BWhich sentence from the text best shows the development ofthe central idea in Part A?"When Jesse Senko was 12 years old, he had anexperience that literally changed his life.""He focuses his research and life's work on marineresource sustainability.""For example, sea turtles eat seagrass, which helps itgrow properly.""Sea turtles are endangered because fishermeninadvertently catch them in their nets." Which of the following statements would best represent the value of a? PLEASE HELP An engine cranks slowly. Technician A says a possible cause of the problem is low resistance in the starter circuit connections. Technician B says a possible cause is an open in the starter field coil circuit. Who is correct? In terms of cash flow, which is the largest financial market in the world today? mr. thomas has $100 income this year and zero income next year. the market interest rate is 10 percent per year. mr. thomas also has an investment opportunity in which he can invest $50 this year and receive $80 next year. suppose mr. thomas consumes $50 this year and invests in the project. what will be his consumption next year? Thinking back to that presentation in the library makes me smile. What started out as three high school boys skipping class turned out to be the most significant event in our lives. If we had made it to the gym that day instead of the library, more than likely the streets would have swallowed us in the next few years. We never would have become doctors. Everything we needed to start on the road to success was included in one forty-five-minute presentation. And we almost missed it.This was the first time that a path to my dreams was shown to me. Deep inside, I knew I could accomplish anything if given the chance. I just didn't know how to find that opportunity. That presentation showed me the possibility of reaching goals I had only dared to dream about. I think if a person dreams hard enough, sometimes a door will open to make that dream come true. Of course, it helps to be prepared to go through the door when the opportunity arises. We almost missed it.We also had no idea that day that we were forming a pact that would last a lifetime. We just knew that somehow each of us individually might fail, but the strength of the three of us together just might be enough to succeed.We Beat the Street,Sampson Davis et alBased on the central ideas and details from the passage, write one to three sentences summarizing how the three friends changed and stayed the same after seeing the presentation. simplify mn+3xy-nm-yx A huge, jagged rock sits atop a windy cliffside. Over a period of many years, how will the rock MOST LIKELY change? 5Think about the things Columbus described in his letter to the King and Queenof Spain, and how he described them. What was Columbus's attitude towardthe land he explored? The volume of Cube A is 64 cubic inches. The face of Cube B has an area of 81 square inches. Which cube has a greater side length?The side length of Cube A is inches. The side length of Cube B is(Simplify your answers.)inches Cubehas a greater side length. write a linear function with f with f (5) = -1 and f (0) = -5 Which practice can cause contamination by the bacteria Vibrio vulnificus? A. incorrect cooking of oysters B. poor personal hygiene practices C. cross-contamination of raw and cooked chicken D. using canned shellfish past its expiration date