File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "help with this" Watch "help with this" New topic

help with this

khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
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
for a solution and explanation check out this link.
[ June 17, 2002: Message edited by: Marcel de Jong ]
Cindy Glass
"The Hood"

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 ]
I agree. Here's the link:
subject: help with this
It's not a secret anymore!