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);
Collections.shuffle return void, you cannot assign void to a ArrayList.
ArrayList
you could do for example:
Collections.shuffle(tips); this.tips = tips;