• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic