The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Dont trust those unicode characters..........

Posted by Jody Brown on November 10, 2000 at 5:01 AM

Hi Ruchi & hema,

You need to be careful with unicode characters as they are also
valid characters in your source as well. In your case, '\u00a'
is inserting a carriage return in your code immediately after
the 'a'. This is terminating your line of code prematurely. The
reason /* */ works is because this is a multi line comment and
will comment out the (now) two lines of code, so the complier
will ignore it.


Jody Brown


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us