what is the output of the following code snippet? treeset set = new treeset(); set.add("b"); set.add("a"); set.add("d"); set.add("a"); for(string s : set) { system.out.print(s + " "); }
To have a program respond to a mouse click, you should a. write a class called ActionListener with a main() method b. write any actionListener method c. write a class that extends ActionListener d. write a class that implements ActionListener