Question: Create a static method that: - is called repeatAL - returns nothing - takes in a single parameter - an ArrayList of Booleans This method

Create a static method that:

- is called repeatAL - returns nothing - takes in a single parameter - an ArrayList of Booleans

This method should modify its ArrayList parameter by repeating its ArrayList values.

For example, if the parameter is

(true, false, false)

The modified ArrayList should be

(true, false, false, true, false, false)

Note: you might want to use a for loop...

----------------------------

import java.util.*; import java.util.Scanner;

class Main {

//your main method here public static void main(String[] args) { }

//create your method below public static void repeatAL(ArrayList bools) { } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!