0

Treeset error occured.How to solve that?

TreeSet<String> t2= new TreeSet<String>(); t2.add("Pink"); t2.add("White"); t2.add("Black"); System.out.println("Tree set2: "+tree_set2); t.addAll(t2); System.out.println("Tree set1: "+t); code ⤵️ https://code.sololearn.com/cICsLRcK86vd/?ref=app

29th Oct 2022, 5:07 AM
Mustakim Rahman
Mustakim Rahman - avatar
2 Respuestas
+ 2
line 35: System.out.println("Tree set2: "+t2);
29th Oct 2022, 5:24 AM
Bob_Li
Bob_Li - avatar
+ 2
thanks
29th Oct 2022, 5:45 AM
Mustakim Rahman
Mustakim Rahman - avatar