wood burning stoves 2.0*
The moose likes Java in General and the fly likes help with this Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "help with this" Watch "help with this" New topic
Author

help with this

khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
hi,
i was playing around with code and i did this:
public class Tries{
//char a ='\u000A';}
how come i have an error even after ignoring that line that has char in it? isnt it supposed to ignore that line?
pls help
Marcel de Jong
Ranch Hand

Joined: May 27, 2002
Posts: 54
Hi,
for a solution and explanation check out this link.
http://www.smotricz.com/kabutz/Issue050.html
[ June 17, 2002: Message edited by: Marcel de Jong ]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Please see this explaination.
Remember that the linefeed is going to happen BEFORE any compiling starts. So the compiler will see this as:
//char a ='
';} // this is on a separate line now
Only the first line is commented out. The second line is not valid syntax.


"JavaRanch, where the deer and the Certified play" - David O'Meara
khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
thanks alot cindy and marcel
those 2 explanations really helped
[ June 17, 2002: Message edited by: khella smith ]
 
jQuery in Action, 2nd edition
 
subject: help with this
 
Similar Threads
how to print a christmas tree?
Convert "\n" to char '\n'
Checking Printable Characters
char doubt
char