Why am I getting this error for this code? I have the correct imports for ArrayList an Collections
private ArrayList tips; public TipsTask(ArrayLi
The problem is that Collections.shuffle method doesn't return anything.
Collections.shuffle
You can try this:
private ArrayList tips; public TipsTask(ArrayList tips){ this.tips = new ArrayList(tips); Collections.shuffle(this.tips); }