Question: 2 - Suppose you are given a method named equal that takes an integer arraylist x as input parameter and returns true if arraylist contains

2- Suppose you are given a method named equal that takes an integer arraylist x as input parameter and returns true if arraylist contains same number of positive and negative elements, false otherwise. Which of the following is the correct statement to call equal method.
a) boolean result=equal(ArrayList x;
b) boolean result=equal(x;
c) int result=equal(ArrayList x;
d) int result=equal(x);
Leave blank
 2- Suppose you are given a method named equal that takes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!