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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
