+ 1
Need Solution
//converting Hashset to treeset Set<String>tree = new TreeSet<String>(n); System.out.println("TreeSet elements:"); for(String element : tree){ System.out.println(element); } showing error â€”ïž https://code.sololearn.com/cLVS6gH9m9cP/?ref=app
2 Answers
+ 2
Mustakim Rahman
You need to import Set interface
Or do util.*; to import all interfaces and class
+ 2
Thanks