0

Plzz help which type of error is this???

https://code.sololearn.com/cr3629mVjI1a/?ref=app

4th Sep 2021, 4:15 AM
Kajal Kumari
4 ответов
+ 2
There is nothing wrong with the code. Just import Set and HashSet. import java.util.Set; import java.util.HashSet;
4th Sep 2021, 5:32 AM
Avinesh
Avinesh - avatar
+ 2
Izac Espinoza For clarification, there actually is nothing wrong with using; Set<Integer> values = new HashSet<Integer>(); and is usually the preferred way with collection types. It's a typical use of polymorphism. The only issue(s) I see from a glance at the code is the missing imports.
4th Sep 2021, 9:18 AM
ChaoticDawg
ChaoticDawg - avatar