Question: Given an integer x which is assumed to be in the list a, write a method that returns the position of the rst occurrence of

Given an integer x which is assumed to be in the list a, write a method that returns the position of the rst occurrence of x in a. Positions are counted as 0,1,2,.... If x does not appear in the list, you should throw an IllegalArgumentException.
static int find(int x, List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
