This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am busy with Servlets-3 (Reverse2), and I am almost(!) ready to send it in, but .... : maybe I didn't understand something with method overloading? I try to use a method from com.javaranch.common.* , which exists in 4 different variations, only distinguished by its kind of parameters (char-char or String-String or 1-char-1-String or 1-String-1-char). I would like to use the 1-char-1-String kind, but I get this compiler error message: replace(char,char) in java.lang.String cannot be applied to (char,java.lang.String) In my code I declared the variables before calling the method: char this = 'x' ; String that = "y" ; I thought, with method overloading the compiler should know which of the 4 methods has the matching parameters? How can I reach the - well existing - method (char, String)? Thanks for hinting me out of this!