What would really help me is this bit of code
case 1: deposit(balance);
String prompt=Console.readString("Choose 1 for savings and 2 for checking");
{if(prompt=="1")...
Need someone to point me in the right direction. I'm trying to do simple inheritance with a menu interface. I don't really understand what I'm doing wrong? My code does not compile correctly.
Here is the code
public class Account extends Object
{
// Fields
private String...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.