Reputation: 3
I am importing in a Scala project a java class which uses the keyword match
.
I need to override the method match
in my Scala code.
class Foo extends JavaClass {
override def match (String str) : Boolean = { .... }}
But this is not working, the error is:
identifier expected but 'match' found
What is the problem?
Upvotes: 0
Views: 457