Question
Help me with a simple error in my code dealing with ArrayLists: Here's my code: import java.util.ArrayList; public class Checkout { private int size; private
Help me with a simple error in my code dealing with ArrayLists:
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 to Expert-Tailored 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