About 387,000 results
Open links in new tab
  1. public class Lab1Ex1 { public static void main (String [] args ...

    I'm trying to compile a simple class in Java but can't work out what the error means. I'm very new to Java. The error is: Book.java:1: error: '{' expected public ...

  2. Java: Identifier expected - Stack Overflow

    Java: Identifier expected Asked 13 years, 7 months ago Modified 4 years, 2 months ago Viewed 580k times

  3. What does "error: '.class' expected" mean and how do I fix it

    Dec 17, 2018 · error: insert ". class" to complete Expression What do errors like this actually mean, what causes them, and how should you fix them?

  4. How to solve error: ';' expected in Java? - Stack Overflow

    Feb 8, 2016 · I have a error: ';' expected issue with my Java code below. I don't know how to solve it? SortThread and MergeThread have been created as a class, and compiled well. The only problem is …

  5. java code is showing error. ( ';',expected) - Stack Overflow

    Feb 1, 2011 · In Java, it's illegal to have code in a class outside of a class method or static initializer. In this case, the statement z = x * y; is legal Java code, but it has to be inside of a method.

  6. java - Why am I getting a "; expected" error? - Stack Overflow

    Sep 25, 2013 · I'm trying to learn how to create a method, but I keep getting 10 ; expected errors. I know this code isn't correct, but I can't seem to find how to create a method correctly.

  7. "How to solve error: ';' expected in Java?" - Stack Overflow

    Jul 22, 2019 · "How to solve error: ';' expected in Java?" [duplicate] Asked 6 years, 4 months ago Modified 6 years, 4 months ago Viewed 3k times

  8. What does the Java compiler error message "<identifier> expected" …

    12 if is a reserved keyword in Java (as seen in your if statement), and is thus not an eligible class name. Choose another name for your class, like IfTesting. By convention, all class names start with an …

  9. Compiler error: "class, interface, or enum expected"

    ^ H:\Derivative quiz\derivativeQuiz.java:115: class, interface, or enum expected } ^ 33 errors Process completed. I feel like this is a basic error, and yet I can't seem to find it. If it makes a difference, I am …

  10. java - ' (' or ' [' Expected - Stack Overflow

    I am getting the following error when trying to compile my program. ' (' or ' [' Expected.