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
e-lub [12.9K]
3 years ago
8

Suppose arraylist list1 is [1, 2, 5] and arraylist list2 is [2, 3, 6]. after list1.addall(list2), list1 is __________.

Computers and Technology
1 answer:
Lady_Fox [76]3 years ago
4 0
The addAll(Collection c) method, simply appends c's elements to the end of the collection that the method was called from.

for example:


List<int> list1 =  new ArrayList<>(Arrays.asList(1, 2, 5));
List<int> list2 =  new ArrayList<>(Arrays.asList(2, 3, 6));
list1.addAll(list2);

for (int num : list1) {
    System.out.print(num + " ");
}


The output of the above code-snippet is: 1 2 5 2 3 6
You might be interested in
Write a loop that reads positive integers from standard input, printing out those values that are greater than 100, and that ter
zepelin [54]
Thank you for posting your question here. Below is the answer, I hope it helps. 

int number = 0;

while (stdin.hasNextInt() && number >= 0){
number =stdin.nextInt();
if (number > 100)
System.out.print(number + " ");
<span>}</span>
7 0
3 years ago
What is the main difference between inserting header/footer in excel and word?​
Zepler [3.9K]

Answer:

Header is at the top of the page and used for epicas and titles, while footers at the bottom are used for footnotes or page number

7 0
3 years ago
How could your program be useful in the real world?
anyanavicka [17]

Answer:

to answer the question I need to know what your program is and what it does

3 0
3 years ago
A bin contains 100 sty le a notebooks, 100 style b notebooks, and 100 style c notebooks. antoine will select 3 notebooks from th
emmasim [6.3K]
<span>The answer is Ten.  Substituting numbers for letters, available selections are 111, 112, 113, 122, 123, 133, 222, 223, 233, 333.  Note that, for example, 112, 121, and 211 are considered as the same selection.
</span>AAA, BBB, CCC, <span>AAB, AAC, </span><span>BBC, </span><span>ABB, ACC, </span><span>CCB & ABC.</span>
7 0
4 years ago
What does the presence of the cydia app on an ios device indicate?
Natasha2012 [34]
Had to look for the options and here is my answer. 
Cydia app is an app that is common found on those devices that are jailbroken because this provides third-party custom apps. Therefore, the presence of Cydia app on an iOS device would indicate that the device has been jailbroken. Hope this helps.
6 0
4 years ago
Other questions:
  • Which function is used to display a string value to the screen?
    8·1 answer
  • The belief that the odds of two events occurring together are greater than the odds of either event occurring alone is the _____
    9·2 answers
  • A company is updating their office routers that handle all incoming and outgoing networking traffic. They would like the PCs to
    10·1 answer
  • You have noticed that one of your DNS servers has possibly been compromised. You believe that a cached DNS entry for your domain
    8·1 answer
  • IOS 0R ANDR0ID ???
    13·1 answer
  • In what ways are hardware and software different? in what ways are the the same?
    10·2 answers
  • A browser allows you to set preferences for using the browser. These preferences include all of the following except
    7·1 answer
  • Pleases Help ME An example of a _________________ impact is when a product is back ordered and the business contacts the custome
    5·1 answer
  • WILL GIVE BRAINLEIST PLZ HELP PLZ AND THANK YOU
    7·1 answer
  • What are the most common processes and procedures handled by data warehousing specialists? select all that apply.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!