fork download
  1. class A {
  2. public:
  3. void setValue(float newValue){ a = newValue};
  4. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: illegal start of type
 public:
       ^
Main.java:2: error: ';' expected
 public:
        ^
Main.java:3: error: invalid method declaration; return type required
void setValue(float newValue){ a = newValue};
     ^
Main.java:3: error: ';' expected
void setValue(float newValue){ a = newValue};
                                           ^
4 errors
stdout
Standard output is empty