5 Replies Latest reply on Oct 10, 2008 1:26 AM by 843785

    Non-static method cannot be referenced from a static context.

    843785
          private int numberOfWords()
          {
              StringTokenizer listOfWords = new StringTokenizer(Document.getText());
          }
      Above is my method in A class, the mehod getText() is in B class, and listOfWords is a variable.
          public String getText()
          {
              return text;
          }
      thanks in advance

      Edited by: zxcvbnm on Oct 9, 2008 6:03 PM