Hi,
I keep getting an error message when I'm compiling a class that implements an interface:
ToolV1/Calculator.java [14:1] cannot resolve symbol
symbol : class CalculatorInterface
location: package ToolV1
The class I'm trying to compile is as follows:
***********************
package ca.ToolV1;
public class Calculator implements ca.ToolV1.CalculatorInterface {
/** Creates a new instance of Calculator */
public Calculator() {
System.out.println("In Calculator's constructor");
}
public void calculate(String Response) {
System.out.println("About to Calculate");
}
}
***********************************************
It doesn't work when I omit the pkg name and use "implements CalculatorInterface" either. My interface is defined as follows:
*********************
package ca.ToolV1;
public interface CalculatorInterface {
public void calculate(String Response);
}
********************
Any help would be much appreciated, thank you in advance!
I keep getting an error message when I'm compiling a class that implements an interface:
ToolV1/Calculator.java [14:1] cannot resolve symbol
symbol : class CalculatorInterface
location: package ToolV1
The class I'm trying to compile is as follows:
***********************
package ca.ToolV1;
public class Calculator implements ca.ToolV1.CalculatorInterface {
/** Creates a new instance of Calculator */
public Calculator() {
System.out.println("In Calculator's constructor");
}
public void calculate(String Response) {
System.out.println("About to Calculate");
}
}
***********************************************
It doesn't work when I omit the pkg name and use "implements CalculatorInterface" either. My interface is defined as follows:
*********************
package ca.ToolV1;
public interface CalculatorInterface {
public void calculate(String Response);
}
********************
Any help would be much appreciated, thank you in advance!