多选题 Given:
2. import java.util.*;
3. public class MyFriends {
4. String name;
5. MyFriends(String s) {name = s; }
6. public static void main(String[] args) {
7. Set<MyFriends> ms = new HashSet<MyFriends>();
8. ms.add(new MyFriends("Bob"));
9. System.out.print(ms + " ");
10. ms.add(new MyFriends("Bob"));
11. System.out.print(ms + " ");
12. ms.add(new MyFriends("Eden"));
13. System.out.print(ms + " ");
14. }
15. public String toString() {return name; }
16. }
What is the most likely result?
【正确答案】 E
【答案解析】