I\'m trying to refer to a method in another class and use that in a return statement in my other class. At the moment, all I get is the following error: non-static method ge
You're trying to call a non-static method as if it were static. Assuming that you have a class Account, Account.getBalance() would only work for a static getBalance() method. You need an instance of Account in order to call a non-static getBalance() method.