Why am I getting this error for this code? I have the correct imports for ArrayList an Collections
private ArrayList tips; public TipsTask(ArrayLi
Collections.shuffle(tips) returns void. So you cannot assign this to an ArrayList()
Collections.shuffle(tips)
ArrayList()
What you want is
private ArrayList tips; public TipsTask(ArrayList _tips){ Collections.shuffle(_tips); this.tips = _tips; }