l keep getting a code error when processing javac in the DOS command prompt using jdk-9. I can't find any syntax errors.
The process stops with error listed after class Moonweight. Here is the code. Any ideas would be appreciated.
I'm just learning from a library book.
code = java
/* A program to compute your effective weight on the moon.
Program called "Moonweight.java".
*/
class Moonweight {
public static void main(String args[]) {
double eweight; // weight in pounds on earth
double mweight; // weight in pounds on the moon
eweight = 230; // weight on earth
mweight = eweight * .17; // calculate effective weight on moon
System.out.println("weight on earth is" + eweight);
System.out.println("weight on moon is" + mweight);
}
}
/code