rendered paste body//Author Name: Michael Dubendris//Course: 5002-220-01//Instructor: Rayno Niemi//Purpose: The purpose of this class is to calculate the bank//account informationpublic class BankAccount{//variables private String accountName = ""; private double accountBalance = 0;//default constructor public BankAccount() { accountName = null; accountBalance = 0; } // public boolean setAccountName(String account)// {// // }//methods //method for depositing money into the account public boolean deposit(double balance) { if(balance >= 0) { accountBalance = accountBalance + balance; return true; } else return false; } //method for withdrawing money from the account public boolean withdrawal(double balance) { if((accountBalance - balance)<= 0) { accountBalance = accountBalance - balance; return true; } else return false; } //method to get balance of the account public double getBalance() { return accountBalance; } //method to get the name of the account public String getName() { return accountName; } //mutators private boolean setBalance(double balance) { if(balance >= 0) { accountBalance = balance; return true; } else return false; } private void setName(String name) { accountName = name; }}