This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
but I have every times the same error... How can I do? What is the error that you're experiencing? What were you expecting myJTextField.getText().replaceAll("'", "\'"); to do? Don't forget that Strings are immutable and, if replacements are made, the replaceAll method returns a reference to a different String object than the one the method was called on. [ July 05, 2003: Message edited by: Dirk Schreckmann ]