 <p><code>hobby</code> is a <code>String</code> and <code>String</code>s don't have a method called <code>add</code> in Java.</p> <p>You should change <code>hobby</code>'s type from <code>String</code> to <code>String[]</code> because there is a <code>hobby[rando]</code> in the code that indicates <code>hobby</code>'s type must be <code>String[]</code></p>