Hi I'm very new to Java and have this HW problem, we are asked to build a Class RandomBag -- a generic bag container which allows 'RandomPick' of an element. I keep getting this error I have little idea to fix, any help is greatly appreciated!
public RandomBag() {
ArrayList<E> Bag=new ArrayList<E>();
Random Rand =new Random();
}
public RandomBag(int seed) {
ArrayList<E> Bag=new ArrayList<E>();
Random Rand =new Random(seed);