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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started