This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
note that the method endsWith(""), takes actually an empty string, or a string that contains nothing, not a single character. and if we compare it with what the java doc say about the method endsWith(String argument)in the String class: "Note that the result will be true if the argument is the empty string or is equal to this String object as determined by the" so the answer will be true.