I have the following code in my source: (starting from the top)
import java.util.*; class PronouncablePasswordGenerator { public static void main(String[] arguments) { final char[] Vowels = new char['a', 'e', 'i', 'o', 'u', 'y'];
And javac gives this output:
Z:\dev\Java\PPG\ppg.java:7: ']' expected final char[] Vowels = new char['a', 'e', 'i', 'o', 'u', 'y']; ^
Obviously it does not compile, I have waay too many errors in my code, but this error is one that puzzles me most, since:
- there IS a ] there.
- and what does the ^ below the 's' of Vowels mean? does it expect a ']' there? (I know that on this webpage shows the '^' below the comma of the 'a', but in the output text-file I got from javac, it is where I said it is)
Thanks for your help! I'm using this project as a useful device for learning Java. This program (when finished) should be useful in years to come.