This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / How to get or replace the backslash in Java stringI try the followings:
System.out.println("12345\6"); // it get special char output like '12345'
I want to get or check this backslash by substring(..), charAt(..) or regx functions but they does not work. Is there any way to make it? Many thanks.
-skylei(sky);
2009-4-27
{256}
(#5224517@0)
-
sorry, the code should be System.out.println("12345\6");
-skylei(sky);
2009-4-27
(#5224519@0)
-
using string.indexOf("\\")..?
-nicetomeetyou(_);
2009-4-27
(#5224598@0)
-
use this system.out.println("12345"+"6"). hehe
-ttl(日后再说);
2009-4-27
(#5224635@0)