问题描述:

This question already has an answer here:

  • Cannot make a static reference to the non-static method

    8 answers

网友答案:

You need to call the getUsername() method from an actual Users object. Probably what you meant to do was say Contact.getUsername().

相关阅读:
Top