Now when I tried to compile it this error is coming. I don't know what is its meaning.
A.java:11: warning: as of release 1.4, assert is a keyword, and may not be used
as an identifier
assert j == 2;
^
A.java:11: ';' expected
assert j == 2;
^
1 error
1 warning
I posted this in the beginners form and
I got an answer from Mr. Bastin
Hi Hemant,
While compiling, use "-source 1.4" option.
For Example: If your filename is Abcd.java, compile as
"javac -source 1.4 Abcd.java". You will get the compilation right.
---------------
SCWCD ....ticking.....
SCJP [91%]
---------------
Now how to do this inside an eclipse?
Thanks
Hemant Agarwal
[ February 23, 2006: Message edited by: Hemant Agarwal ]