I am receiving this type of error within jcreator but am unsure on how to fix. Here is the code line
public Account(String name, double balance)
{
this.name = name;
return name;
if(balance>0.0)
this.balance = balance;
return balance;
}
Your method name would have to be changed to
and if you are not creating an object or class file to go off of...aka if your calling the method standalone from the static main method like this:
you would need to make the method name with
static
, which would look like this: