The code with the irrelevant parts taken out.
Code:
package ACCOUNT;
import java.util.Scanner;
import java.util.GregorianCalendar;
import javax.swing.*;
class Bank{
static private double bal; //Account balance
static int withdraw; //amount of times withdrawn
static void setBal(double amount){bal = amount;}
static double getBal(){return bal;}
public static void main(String[] args){
//code
}
class Charge extends Bank{
double fee = Bank.withdraw * 0.10;
double tempbal = Bank.getBal();
double amount = tempbal - fee ;
Bank.setBal(amount);
}
can someone help?
