Java version problems?

Hi all.

I'm new here and I'm a beginner in Java field.

Well, I bought a book and am learning all kinds of java things here and there.

Today I tried to compile something like...

public StringLister(String[] moreNames) {

Vector List = new Vector();

for (int i = 0; i < names.length; i++) {

list.add(names);

}

for (int i = 0; i <moreNames.length; i++) {

list.add(moreNames);

}

Collections.sort(list);

for (String name : list) {

System.out.println(name);

It's just a part of a whole programming but JSC 2.0 (build 060120) says

"for each loops are not supported in -source 1.4 try 1.5 instead."

How do I switch from "'-sounce 1.4" to "-source 1.5" within JSC?

When I checked the version of java from help/about in JSC, it said "Java 1.5.0_04."

Please help me on this.

Thank you for your time.>

[943 byte] By [Yoshi] at [2007-11-26 9:32:33]
# 1
Cross-posted: http://forum.java.sun.com/thread.jspa?messageID=4344069
CeciNEstPasUnProgrammeur at 2007-7-7 0:19:16 > top of Java-index,Development Tools,Java Tools...