Java beginner baffled by "<identifier> expected" error

263 Views Asked by At

I've googled until I'm cross-eyed, but I guess this is a pretty generic error. I keep simplifying my code to try to narrow it down.

class ListMaker {  
  public int testMe() {
    return 0;
  }
} 

class Examples {
  Examples() {};
  int testInt;
  testInt = ListMaker.testMe(); <--- compiler error: <identifier> expected
}
0

There are 0 best solutions below