This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I am using jdk1.4, but I cannot get this code to work. No compile errors, but runtime errors. any ideas??? Even fooled around with included escape character '\' but no success though I am not good with the \). String replacee = "_"; String replacer = "' OR PersonalDetails.City='"; System.out.println("Replacee is: " + replacee); System.out.println("Replacer is: " + replacer);
city.replaceAll(replacee, replacer); System.out.println(city) //this shows that city was not updated as hoped
Joined: Aug 10, 2001
Still no luck....I even tried removing the "_" and putting "or" instead, so that the code looks like: String replacee = "OR"; String replacer = "' OR City='"; System.out.println("Replacee is: " + replacee); System.out.println("Replacer is: " + replacer);