/* 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;

Comments and Answers (2)

Naveen

Naveen

need a solution

Lalit

Lalit

What is the correct solution?

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}