Results 1 to 6 of 6
Thread: Comparison with " and '
- 01-24-2010, 01:59 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
- 01-24-2010, 02:07 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
- 01-24-2010, 02: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, 02:18 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
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, 05: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, 05:33 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
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, 09:20 AM -
problem with argument list and precedence "(" and ")"
By helpisontheway in forum Advanced JavaReplies: 6Last Post: 12-24-2009, 07:50 AM -
how to override "cancel operation" in "progress bar"
By singswt in forum SWT / JFaceReplies: 2Last Post: 10-08-2009, 11:28 PM -
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 -
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


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks