Please tell me why the program doesn't compile and how to fix the problem.
I am trying to compile a java program without using an IDE. I have set the PATH and CLASSPATH environment variables to point respectively to the bin and lib directories of the jdk. I am operating under Windows and using the command prompt to compile. The source is e:\scjp\exercises\chapter1
.java and the working directroy is e:\scjp\exercises\chapter1
. The command I use to compile is javac ListFoods.java. When I compile the code I receive the error message "ListFoods.java:14: <identifier> expected System.out.println(s);
String s = "Hi mom";