File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes is khalid wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "is khalid wrong?" Watch "is khalid wrong?" New topic
Author

is khalid wrong?

kay jee
Greenhorn

Joined: Sep 17, 2006
Posts: 21
ch\u0061r a = 'a';
Is a valid declaration right.
but my IDE doesn't think so. His name is eclipse 3.2. and im using jdk1.5
Please help
This is wat it says:
Got an exception - unexpected char: '\'
Srinivasan thoyyeti
Ranch Hand

Joined: Feb 15, 2007
Posts: 557
Hi Kay jee,

It can't say like that.
Probably you would have given two slashes(\\ or /).

No other guess from me.


Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Wiyanto Ngasinur
Ranch Hand

Joined: Dec 11, 2006
Posts: 34
Probably you would have given two slashes(\\ or /).


nope i tried with \, work correctly in my eclipse 3.2
kay jee
Greenhorn

Joined: Sep 17, 2006
Posts: 21
hmm. any other guesses ppl? its just not working on my IDE. what cud be the reason
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
What happens when you try without using eclipse?


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
kay jee
Greenhorn

Joined: Sep 17, 2006
Posts: 21
it compiles
Abhishek Bharti
Greenhorn

Joined: May 18, 2006
Posts: 6
Are you sure you have not copy n paste the code while trying on IDE, try by typing through keyboard or something. This must be your system specific problem.


Abhishek Bharti
Sourin K. Sen
Ranch Hand

Joined: May 02, 2006
Posts: 86
It's working on my eclipse 3.2 as well. There must be something wrong with your eclipse. Check it's settings properly.


Regards,<br />Sourin.
Prashant Saraf
Ranch Hand

Joined: Sep 25, 2006
Posts: 52

Hay it's working fine i try this in Eclipse 3.2
kay jee
Greenhorn

Joined: Sep 17, 2006
Posts: 21
yup its working fine everywher except my pc.
 
 
subject: is khalid wrong?