Results 1 to 6 of 6
Thread: Comparison with " and '
- 01-24-2010, 02:59 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
- 01-24-2010, 03:07 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 28
- 01-24-2010, 03:12 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
IT is impossible in Java to write thing like this
if (str.charAt(h)=="""){
start=h;
}
- 01-24-2010, 03:18 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 28
A character is a character and a String is a String; they're different types. A single double quote character is written as '\"' and a single single quote character is written as '\''. Consequently a single double quote String is written as "\"" and a single single quote String is written as "\'".
kind regards,
Jos
- 01-24-2010, 06:07 PM #5
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
Thank! It is work! How i can increase your reputation at forum?
- 01-24-2010, 06:33 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 28
Similar Threads
-
How to change my form design from "metal" to "nimbus" in Netbeans 6.7.1?
By mlibot in forum New To JavaReplies: 1Last Post: 01-21-2010, 10:20 AM -
problem with argument list and precedence "(" and ")"
By helpisontheway in forum Advanced JavaReplies: 6Last Post: 12-24-2009, 08:50 AM -
how to override "cancel operation" in "progress bar"
By singswt in forum SWT / JFaceReplies: 2Last Post: 10-09-2009, 12:28 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, 07:56 PM -
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, 08:35 AM
Bookmarks