First of all welcome to
java ranch.
William you are compiling your code that's Ok but how you are running it.
either provide whole source code or just explian.
And tom he is new to java ranch as it is his first post.
So errors can be there.
William just use proper tags to make your post more readable..