File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes cannot find symbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot find symbol" Watch "cannot find symbol" New topic
Author

cannot find symbol

mike hew
Greenhorn

Joined: Oct 26, 2006
Posts: 27
I've try this several different ways, but seems if I change it 1 way it get more errors or change it another way.

But still can't figure out how to change the errors?

-Called Compiler C:\PROGRA~1\Java\JDK15~1.0_0\bin\javac.exe-
-Target File: G:\NEW9~1\CheckingAccountsTest.java-
G:\NEW9~1\CheckingAccountsTest.java:96: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
currentAcccount.getBalance() += sumOfBeginningBalances;
^
G:\NEW9~1\CheckingAccountsTest.java:109: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
handleWithdrawal(currentAcccount,Double.parseDouble(myFields[indexForWithdrawalAmount]));
^
G:\NEW9~1\CheckingAccountsTest.java:118: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
currentAcccount.getBalance() += sumOfEndingBalances;
^
G:\NEW9~1\CheckingAccountsTest.java:127: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
currentAcccount.getBalance() += sumOfBeginningBalances;
^
G:\NEW9~1\CheckingAccountsTest.java:140: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
handleWithdrawal(currentAcccount,Double.parseDouble(myFields[indexForWithdrawalAmount]));
^
G:\NEW9~1\CheckingAccountsTest.java:149: cannot find symbol
symbol : variable currentAcccount
location: class CheckingAccountsTest
currentAcccount.getBalance() += sumOfEndingBalances;
^
6 errors

-Finished-


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

How many 'c' do you count into 'Account' ?


[My Blog]
All roads lead to JavaRanch
Frances Hollis
Greenhorn

Joined: Sep 02, 2006
Posts: 17
Hi, I am pretty new to Java but here is my two cents!
Oops, I just reread Satou's post. That is your problem.
Also, (just my opinion), you have WAY too many comments in your code. Is this how a teacher told you to do things? Just curious.

Frances
mike hew
Greenhorn

Joined: Oct 26, 2006
Posts: 27
Thank you both, I see what happens when you right a porgram or should I say 3 programs in 1 with over 40,000 bytes, about to make big mistakes, again thank you you so much.

Now I go and get re-educated in spelling lol.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find symbol