The method length() is undefined for the type
<p>I'm trying to use the <code>length()</code> method to print out the length of a <code>String</code> but I keep getting the error mentioned in the title. I am new to Java and I thought that this method was build into the IDE (Eclipse).</p>

<pre><code>import class JumbleHelper {

    String word;

    public JumbleHelper(String jumbleWord)
    {
        word = jumbleWord;
    }

    public static void main(String[] args) 
    {
        JumbleHelper str1 = new JumbleHelper("maybe");
        System.out.println(str1.length());
    }
}
</code></pre>