how to set IDEA debug with jdk5.0

when i test the enhance for iterate.IDEA give me an error message:for-each loops are not supported in -source1.3,try -source 1.5 to enable for-each loops.


please help me.i am a beginner of java.thank you !!

2 comments
Comment actions Permalink

Set Settings|Paths|Language level to 5.0

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

when i test the enhance for iterate.IDEA give me an error
message:for-each loops are not supported in -source1.3,try -source 1.5
to enable for-each loops.

please help me.i am a beginner of java.thank you !!




0
Comment actions Permalink

Maxim Shafirov thank you very much!

0

Please sign in to leave a comment.