5 Replies Latest reply: Oct 9, 2008 8:26 PM by 843785 RSS

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

          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