View Single Post
  #1 (permalink)  
Old 08-02-2007, 07:07 PM
cecily cecily is offline
Member
 
Join Date: Jul 2007
Posts: 33
cecily is on a distinguished road
problems with replace method
I have this string:
Code:
String url="C:\file\test.txt";
and I want to write '/' instead of '\'
like this
Code:
url="C:/file/test.txt";
I've tried to use the replace but It didn't work

Code:
String url="C:\file\test.txt"; System.out.println(url.replace('\\','/'));
please help me
Reply With Quote
Sponsored Links