What will the output be when this code is run? TreeSet ts=new TreeSet<>(); ts.add(65); ts.add(65); ts.add(-65);
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will the output be when this code is run? TreeSet ts=new TreeSet<>(); ts.add(65); ts.add(65); ts.add(-65);
What will the output be when this code is run? TreeSet<Integer> ts=new TreeSet<>(); ts.add(65); ts.add(65); ts.add(-65); System.out.println( ts.size()); A [-65, 65] B) [65, 65, -65] 3 D E 2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!