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
storchak [24]
3 years ago
10

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
Computers and Technology
1 answer:
rewona [7]3 years ago
7 0

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);

   }

You might be interested in
The Fibonacci sequence begins with 0 and then 1 follows. All subsequent values are the sumof the previous two, for example: 0, 1
PSYCHO15rus [73]
0437818437848484919464689
4 0
3 years ago
Using the drop-down menu, complete these sentences to describe algorithms. Algorithms are instructions to solve a problem. Algor
vfiekz [6]

Answer:

Algorithms are instructions to solve a problem

Explanation:

6 0
3 years ago
Read 2 more answers
Based on the unit content and your own ideas, how would you define a video game in your own words? What separates a regular vide
lara31 [8.8K]

Answer:

A video game would be a series of steps to produce or outcome / end in the form of controller a character or the how the game can be played and being able to play it at some level, but a good game would have multiple questions and a hard difficulty maybe even a customizable section for your character or object. In other words a Video game would be a series of steps to produce a outcome from controlling a character and a Good video game would be the same but added a level of difficulty and harder mechanics into the game.

Explanation:

Hope this helped :)

3 0
3 years ago
What are the types of technology that is use in education and what are their usages​
hjlf
Computers and Tablets I think
5 0
3 years ago
❤️❤️❤️❤️❤️❤️❤️❤️IS THERE ANYONE'S STILL AWAKE?? HMM HEHE I'M HERE AGAIN~~~ FOLLOW ME FOR MOR3~~​
insens350 [35]

Answer:

hello?

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Consider the following classes: public class A { private int myNum; public A(int x) { myNum = x; } public int getNumber() { retu
    11·1 answer
  • What's one way to engage teens in technology?
    8·1 answer
  • Write a program that uses for loops to perform the following steps: Prompt the user to input two integers: firstNum and secondNu
    15·1 answer
  • What is the rarest Supercar/hypercar you have ever seen?
    7·1 answer
  • A relational database is different from a simple database because it has more than one _____.
    13·1 answer
  • The repeated use of electronic communications, such as chat rooms and email, to seek out, harass, or frighten someone is called
    12·1 answer
  • Businesses and sometimes individuals use a _____ to assimilate all of their social media content on a specific topic to engage r
    13·1 answer
  • 8.7 lesson practice question 1
    13·1 answer
  • Write a program which will enter information relating to a speeding violation and then compute the amount of the speeding ticket
    12·1 answer
  • Mingji is working to transfer photos from her digital camera to her computer. While
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!