I have recently upgraded to java and I am trying my hand at the new default methods for interfaces. However I keep getting the syntax error on token "default", delete this token.
Here is my build path where I would expect a problem to occur:
I suspect it has something to do with my build path but do not know what. In case it has something to do with my code here is the code I'm trying:
interface Test{
default void sayHelloWorld() {
System.out.println("Hello World");
}
}
Anybody got any ideas?