G
Gandu
Could some Java Guru help me? I have a subdirectory(named Testpackage) inside
a directory(named Tempjava). The subdirectory Testpackage contains an
interface(Testinterface.java) and a concrete class that implements that
interface(Test.java). If I get into the directory Tempjava and type:
javac Testpackage/Test.java
I get the error message:
Testpackage/Test.java:5: cannot resolve symbol
symbol : class Testinterface
location: class Testpackage.Test
public class Test implements Testinterface{
^
1 error
I have included the interface class and concrete class below:
//Testinterface.java
package Testpackage;
public interface Testinterface{
void doit();
}
//Test.java
package Testpackage;
import java.io.*;
public class Test implements Testinterface{
public void doit(){}
public static void main(String [] args){
System.out.println("Implementing interface in package");
}
}
Could someone please tell me what exactly to do to get around this
problem. Thanks in advance for your help.
a directory(named Tempjava). The subdirectory Testpackage contains an
interface(Testinterface.java) and a concrete class that implements that
interface(Test.java). If I get into the directory Tempjava and type:
javac Testpackage/Test.java
I get the error message:
Testpackage/Test.java:5: cannot resolve symbol
symbol : class Testinterface
location: class Testpackage.Test
public class Test implements Testinterface{
^
1 error
I have included the interface class and concrete class below:
//Testinterface.java
package Testpackage;
public interface Testinterface{
void doit();
}
//Test.java
package Testpackage;
import java.io.*;
public class Test implements Testinterface{
public void doit(){}
public static void main(String [] args){
System.out.println("Implementing interface in package");
}
}
Could someone please tell me what exactly to do to get around this
problem. Thanks in advance for your help.