Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot find symbol

 
mike hew
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many 'c' do you count into 'Account' ?
 
Frances Hollis
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic