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();
create a class
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Nicholas Jordan
- Posts: 124
- Joined: Mon Dec 20, 2004 12:33 am
- Location: Central Texas ISO Latin-1
- Contact:
Re: create a class
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.jackdegreat wrote:I am not able to create / instantiate a new class with text pad ....
Code: Select all
F:\java3\wk3\AccountDemo.java:13: cannot find symbol
symbol : class Account
location: class AccountDemo
Account my_account = new Account();
What you are doing here is instantiating an Account thingamabobwhatchamacallit and that will have to be defined somewhere.