Results 1 to 4 of 4
- 12-17-2010, 10:38 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 16
- Rep Power
- 0
- 12-17-2010, 10:54 AM #2
Member
- Join Date
- Nov 2010
- Posts
- 3
- Rep Power
- 0
you should escape the special char's for given string
try the following string assignment,
String str = "vijay\\singh";
-Selvaraj
- 12-17-2010, 10:54 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
'\' is the escape character.
If you want just a '\' in the string you need to escape it...so:
"vijay\\singh"
- 12-17-2010, 10:11 PM #4
Similar Threads
-
String variable problem
By gkoef in forum New To JavaReplies: 4Last Post: 12-05-2010, 02:15 PM -
Convert variable name to string.
By MHardeman25 in forum New To JavaReplies: 9Last Post: 08-17-2010, 09:18 PM -
Object name by string variable?
By zerkz in forum New To JavaReplies: 4Last Post: 10-14-2009, 07:16 AM -
I can't seem to pass the value of a string variable into a string array
By mathias in forum Java AppletsReplies: 1Last Post: 08-03-2007, 10:52 AM -
String Variable
By Eric in forum Advanced JavaReplies: 1Last Post: 06-06-2007, 04:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks