Type mismatch: cannot convert from void to ArrayList<String>
arraylist, java
Solution
Collections.shuffle(tips);
Collections.shuffle return void, you cannot assign void to a `ArrayList`.
you could do for example:
Collections.shuffle(tips);
this.tips = tips;
Problem
Why am I getting this error for this code? I have the correct imports for ArrayList an Collections ``` private ArrayList<String> tips; public TipsTask(ArrayList<String> tips){ this.tips = Collections.shuffle(tips); } ```