453,492 views
23 votes
23 votes
An ad agency is interested in keeping track of their clients a little more easily. Help them out by creating two ArrayLists :

1. Create an ArrayList called company Name that stores an ArrayList of all the company names.


2. Create an Integer ArrayList called contractValue that stores the value of the contract that the ad agency has with its clients.

User Zmt
by
2.4k points

1 Answer

7 votes
7 votes

Answer:

Step-by-step explanation:

The only things requested in this question were the two Arraylists. These following arraylists need to be called and values need to be added to them by the corresponding code. At the moment they would be empty.

1. ArrayList<String> Names = new ArrayList<>();

2. ArrayList<Integer> contractValue = new ArrayList<>();

They can be added to any code or in the main method as long as they are within the scope of the code that will be calling them.

User Igor Khvostenkov
by
2.5k points