Page 1 of 1

create a class

Posted: Thu May 24, 2007 4:20 pm
by jackdegreat
I am not able to create / instantiate a new class with text pad:
example - // Create an empty account
Account my_account = new Account();

I am having this compile error:
F:\java3\wk3\AccountDemo.java:13: cannot find symbol
symbol : class Account
location: class AccountDemo
Account my_account = new Account();

Re: create a class

Posted: Sat Jun 09, 2007 1:13 am
by Nicholas Jordan
jackdegreat wrote:I am not able to create / instantiate a new class with text pad ....
Textpad is an editor. The Java Compiler is the compiler and any error messages or anything else the java compiler tells you is from the java compiler, not Textpad.

Code: Select all

F:\java3\wk3\AccountDemo.java:13: cannot find symbol
symbol  : class Account
location: class AccountDemo
Account my_account = new Account();
So where is Account ? in the same file or in another file ....

What you are doing here is instantiating an Account thingamabobwhatchamacallit and that will have to be defined somewhere.