well, this is what I wrote.
and here is what I wrote in the main method:
this is the error:
Exception in
thread "main" java.lang.Error: Unresolved compilation problems:
The target type of this expression must be a functional interface
Syntax error on token "Invalid Character", :: expected
The target type of this expression must be a functional interface
Syntax error on token "Invalid Character", :: expected
at MyPoint.distance(MyPoint.java:39)
at main.main(main.java:108)
What should I do? what's the problem?
It looks like it has a problem with these two lines: