You need to find out how to get a complete list of the compiler's error messages so you can post them.
A one line message doesn't help much.
Here is a sample of an error message from the javac...
Type: Posts; User: Norm
You need to find out how to get a complete list of the compiler's error messages so you can post them.
A one line message doesn't help much.
Here is a sample of an error message from the javac...
Can you post the errors from the compiler. What you posted looks like it is from trying to execute the code.
You need to find and fix the compiler errors before trying to execute the program.
...
please copy and paste here the full text of the compiler's error messages.
What you have posted won't compile. Its missing a class statement and the import statements.
Before adding any more code, fix the current code so it compiles and executes without any errors.
When it works, then move on to adding a loop.