I've been trying to figure out how to use the "replace" method to replace a part of a string with a new part. Nothing I've read makes any sense to me. Maybe because I'm tired. I don't know. But this is what I'm doing and it's not working:
String newPath = path.replace("\\\\en_US\\\\", "\\\\ko_KR\\\\");
Please help me get the part of the string replaced. It is a path to a new location on the hard drive.
path = "C:\workspace\FlexApps\locale\en_US\resources.properties"
The new path should be:
path = "C:\workspace\FlexApps\locale\ko_KR\resources.properties"
Thank you in advance,