“>This material was originally published for the 2002 JavaOne Conference.Josh: Last week’s first puzzler was to figure out what’s wrong with thisprogram:import java.util.*;public class Name { public static void main(String[] args) { Set s = new HashSet(); s.add(new Name(”Donald”, “Duck”)); System.out.println(s.contains(new Name(”Donald”, “Duck”))); } private String first, last; public Name(String first, String last) { if (first == null || last =
continue >>
Author:
Time:
Wednesday, February 6th, 2008 at 9:36 pm
Category:
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation: