Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:47:03+00:00 2026-06-15T16:47:03+00:00

can someone please point me in the right direction here or fill in what

  • 0

can someone please point me in the right direction here or fill in what im missing. would really appreciate it. thanks

I am getting these errors:

E:\Data Netw Proj\BankingApp\BankingServant.java:26: error: cannot find symbol
ArrayList <Accounts> accounts = new ArrayList<Accounts>();
           ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:26: error: cannot find symbol
ArrayList <Accounts> accounts = new ArrayList<Accounts>();
                                              ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:37: error: cannot find symbol
        Accounts lodge = new Accounts();
        ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:37: error: cannot find symbol
        Accounts lodge = new Accounts();
                             ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:47: error: cannot find symbol
        Accounts trans = new Accounts();
        ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:47: error: cannot find symbol
        Accounts trans = new Accounts();
                             ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:58: error: cannot find symbol
        Accounts with = new Accounts();
        ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:58: error: cannot find symbol
        Accounts with = new Accounts();
                            ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:67: error: cannot find symbol
        Accounts bal = new Accounts();
        ^
  symbol:   class Accounts
  location: class BankingServant
E:\Data Netw Proj\BankingApp\BankingServant.java:67: error: cannot find symbol
        Accounts bal = new Accounts();
                           ^
  symbol:   class Accounts
  location: class BankingServant
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
10 errors

Tool completed with exit code 1

This is the code:

//package BankingApp;

//import BankingApp._BankingImplBase;
import BankingApp.*;
import java.util.ArrayList;
import java.util.Iterator;

public class BankingServant extends _BankingImplBase {
     private String accName;
     private int lodgementAmount ;
     private int transAmount ;
     private int transAccName ;
     private int withAccName;
     private int withAmount;
     private int checkBal;

private class Account {

    String accName;
    int lodgementAmount;
    int transAmount;
    int withAmount;
    int checkBal;
    ArrayList <Account> accounts;
}
ArrayList <Accounts> accounts = new ArrayList<Accounts>();
{
    ArrayList<Account> accounts = new ArrayList();


    }


    public boolean makeLodgement(String accName, int lodgementAmount) {

        System.out.println("Lodgement");
        Accounts lodge = new Accounts();
        lodge.accName = accName;
        lodge.lodgementAmount = lodgementAmount;
        lodge.accounts = this.accounts;
        accounts.add(lodge);
        System.out.println("Money Lodged");

}
    public boolean makeTransfer(String transAccName, int transAmount) {
        System.out.println("transfer");
        Accounts trans = new Accounts();
        trans.transAccName = transAccName;
        trans.transAmount = transAmount;
        trans.accounts = this.accounts;
        accounts.add(trans);
        System.out.println("Money transfered");

}

    public boolean makeWithdrawl(String withAccName, int withAmount) {
        System.out.println("Withdrawl");
        Accounts with = new Accounts();
        with.withAccName = withAccName;
        with.withAmount = withAmount;
        with.accounts = this.accounts;
        accounts.add(with);
        System.out.println("Money Withdrawn");
}
    public boolean checkBalance(String balAccName, int checkBal) {
        System.out.println("Balance");
        Accounts bal = new Accounts();
        bal.transAccName = balAccName;
        bal.checkBal = checkBal;
        bal.accounts = this.accounts;
        accounts.add(bal);
        System.out.println("balance is: ");
}

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:47:05+00:00Added an answer on June 15, 2026 at 4:47 pm

    The class name is Account and you are referring to it as Accounts. That’s the error.

    Declare the array list as ArrayList<Account>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please point me in the right direction to create a Mac/PC server
Can someone please point me in the right direction... I need to use the
it's assembler right? can someone please point out the progression that we've had in
Can someone please point me out a hash function (preferably an implementation) which would
Hoping someone can point me in the right direction with this as i'm not
Can someone please point me to instructions for installing the latest Indy10 in Delphi
Could someone please point out a site where I can find an algorithm to
Can someone please fill in the blanks for me, including a brief description of
Could someone point me in the right direction on this? I'm very new to
Can someone please tell me what this means: 07-04 09:54:38.048: I/DetailActivity(15496): Title that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.