class with objects compile error in Java 1.5.0 and 1.4.2.05
Hi, I have some problems with creating objects to my java program.
See below:
/*
JAVA, creating new class object.
*/
class AccountTest {
public static void main(String[]args) {
Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
olesAccount.deposit(1000.0); //Input of 1000$ to account
double balance = olesAccount.findBalance(); //Ask object about balance!
System.out.println("Balance: " +balance);
}
}
/*
ERRORS, from compiler (javac):
AccountTest.java:7: cannot find symbol
symbol : class Account
location: class AccountTest
Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
^
AccountTest.java:7: cannot find symbol
symbol : class Account
location: class AccountTest
Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
^
2 errors
*/
/*
This error occurs with both java 1.5.0 RC and 1.4.2.05
*/

