Hello All,
Am hoping someone can tell me what the problem with the following code is:
The following class is saved as D:\Java\Account.java
public class Account{ public double balance; public Account(double initBalance){ balance = initBalance; } }
The following class is saved as D:\Java\AccountTest.java
For some reason, Account.java compiles correctly, but AccountTest does not and gives me a cannot find symbol error stating that it cannot find the Account class. I have tried this several times over and I get the same problem. I tried compiling AccountTest directly, since it should compile Account automatically, but it didn't, so I tried compiling them separately and get the problem mentioned above. I hope someone can help me with this! Thanks in advance!