Telegram Group 🔥🔥🔥 Get answers in minutes
Questions answered : 48 /50
+ 4981 more
Answer verified

/* Missing statements ? */
public class NewTreeSet extends java.util.TreeSet
{
public static void main(String [] args)
{
java.util.TreeSet t = new java.util.TreeSet();
t.clear();
}
public void clear()
{
TreeMap m = new TreeMap();
m.clear();
}
}

which two statements, added independently at beginning of the program, allow the code to compile

No statement is required
import java.util.*;
import.java.util.Tree*;
import java.util.TreeSet;
import java.util.TreeMap;

🗓 Dec 22, 2021

View Answer

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Alexandra 🌐 India
Students helping students, nice idea
Was this answer helpful?
votes
Ashley 🌐 India
How?
Was this answer helpful?

Was your question answered?

Want to get famous? 📸

Answer question and get 🤩 high-lighted on our homepage.

© 2017-2022 Foxoyo™
All rights reserved.

Facebook Connect with us