Results 1 to 5 of 5
- 04-24-2009, 02:18 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
Facing issue in printing user like "ab\\cd"
Hello Friends,
I have a application in C which adds the user "ab\\cd" and can read through client written in C. However while reading the user through java it gives me ab\\\cd.( Note the three \\\ instead two.) because of which my application is throwing error. How these escape sequence is handled to print/ read the value "ab\\cd".
Thanks in advance.
- 04-25-2009, 08:40 AM #2
Did you use System.out.format() method for your problem?
Mak
(Living @ Virtual World)
- 04-27-2009, 06:11 AM #3
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
Sorry I am totally new on this. can you put a sample code for my referrance.
Thanks in advance
- 04-27-2009, 06:22 AM #4
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
to println "ab\\cd", your String should be ab\\\\cd
- 04-27-2009, 01:28 PM #5
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
Can't get my "if" statement to read user input
By daletron3030 in forum New To JavaReplies: 7Last Post: 01-16-2009, 05:24 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
printing an "E" out of asterisks via strings
By hokieman07 in forum New To JavaReplies: 1Last Post: 04-08-2008, 05:45 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks