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.>

