Unable to invoke the class, although i defined it. I tried with many methods.
Error:
error: cannot find symbol
StopWord d= new StopWord();//test for StopWord
^
symbol: class StopWord
Code:
This is my main file
public static void main(String[]args)throws Exception {
StopWord dis= new StopWord();
System.out.println("whencesoever is in Hahtable :" +
dis.isStopWord("whencesoever"));
}
And my file that contains Class StopWord is
public class StopWord {
public static boolean isStopWord(String s) {
//statements
}
}
Regards!!!