Question: How do I change this line of code to make it fit with an ArrayList instead of a regular array? Here's my code: import java.util.ArrayList;
How do I change this line of code to make it fit with an ArrayList instead of a regular array?
Here's my code:
import java.util.ArrayList;
public class Checkout { private int size; private int amount; private int sum; private double taxRate; private ArrayList
This is the error code I get for the bolded line of code:
The type of the expression must be an array type but it resolved to ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
