Compiler Error: "class, Interface, Or Enum Expected"
Answer :
You miss the class declaration.
public class DerivativeQuiz{
public static void derivativeQuiz(String args[]){ ... }
}
Every method should be within a class. Your method derivativeQuiz
is outside a class.
public class ClassName {
///your methods
}
You forgot your class declaration:
public class MyClass {
...
Comments
Post a Comment