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
Ket [755]
3 years ago
10

Write a method named removeRange that accepts an ArrayList of integers and two integer values min and max as parameters and remo

ves all elements values in the range min through max (inclusive). For example, if an ArrayList named list stores [7, 9, 4, 2, 7, 7, 5, 3, 5, 1, 7, 8, 6, 7], the call of removeRange(list, 5, 7); should change the list to store [9, 4, 2, 3, 1, 8
Computers and Technology
1 answer:
telo118 [61]3 years ago
5 0

Answer:

Answered below

Explanation:

public ArrayList<Integer> removeRange(ArrayList<Integer> X, int min, int max){

int i; int j;

//Variable to hold new list without elements in //given range.

ArrayList<Integer> newList = new ArrayList<Integer>();

//Nested loops to compare list elements to //range elements.

if(max >= min){

for( i = 0; i < x.length; I++){

for(j = min; j <= max; j++){

if( x [i] != j){

newList.add( x[i] );

}

}

}

return newList;

}

}

You might be interested in
kara, darrell and jose all enjoy watching comedies online. kara and jose also enjoy watching dramas. using content-based filteri
vitfil [10]

Answer:

thrillers?

Explanation:

my best estimation would most likely be a thriller...

4 0
3 years ago
All presentations should have this. A. a clear central message. B. a design template. C. at least seven slides. D. special effec
Oksi-84 [34.3K]

Answer:

A. a clear central message.

When creating a presentation on basically anything, there should always be a clear central message. The purpose of most presentations are to give information on what the presenter would like to convey to the audience members. Without a clear central message, the audience members would be lost and the presentations purpose will not be fulfilled.

4 0
3 years ago
Read 2 more answers
( No links) Which of these devices can be used to back up digital photographs?
MakcuM [25]

Answer:

flash drive

external hard drive

computer hard drive

hope that helps o(*^@^*)o

4 0
3 years ago
Read 2 more answers
What is anequality query​
klasskru [66]

In SQL, there are two ways to test for inequality in a query. You can use either the <> or !=

7 0
3 years ago
You are an administrator for a large corporation and you are responsible for deploying computers often and quickly. Which server
sashaice [31]

Answer:

The deployment method to use is called Zero touch deployment

Explanation:

Zero-touch deployment or installation is considered as a high volume installation procedure for large and medium organizations. Many computers are configured remotely through the help of the command line. With this process computers are deployed often and quickly because the installations are automated.

The benefits of zero-touch deployment include the following:

  1. Easy distribution of computer resources. Resources are scarce in business, hence, there is a great need to be able to recycle business resources as often and quickly as possible.
  2. Reduces operational costs. Businesses are focused on reducing the operational cost to the barest minimum because deployment can be easily managed by internal staff, deploying zero-touch deployment will greatly reduce operational cost.
5 0
3 years ago
Other questions:
  • Use the balanced equation of a nitrogen cycle pathway below to support the conservation of matter and energy. N2 + 8 H --&gt; 2
    9·1 answer
  • HELP PLEASE!!!!!!!!
    10·1 answer
  • SecOps focuses on integrating the need for the development team to provide iterative and rapid improvements to system functional
    11·1 answer
  • Text that does not fit in a cell
    7·1 answer
  • Write an SQL statement that uses all of the SQL built-in functions on the Quantity-OnHand column. Include meaningful column name
    14·1 answer
  • If you were investigating login issues on a Windows computer, which portion of the Event Viewer logs would be a good place to st
    7·1 answer
  • How would you define media literacy?
    12·1 answer
  • What is the term meaning a Java object that has attributes and methods?
    12·1 answer
  • What should you commit to your family members?
    10·1 answer
  • which search engine technology prevents a website from appearing in numerous top positions in the search engine result pages?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!