- #1
K29
- 108
- 0
If I want to work with a character literal, and it is the apostrophe, how do I do this?
For example:
Now, Word.charAt(0)==''' isn't allowed. In fact netbeans won't even let me type it. How do I overcome this?
Thanks in advance
For example:
Code:
if(Word.charAt(0)=='a'){
\\do something
}else{
if(Word.charAt(0)=='''){
\\do something else
}
Now, Word.charAt(0)==''' isn't allowed. In fact netbeans won't even let me type it. How do I overcome this?
Thanks in advance