• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

cannot find symbol

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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-


 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many 'c' do you count into 'Account' ?
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic