Who can help me? I don’t understand why it doesn’t work
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); double saving = read.nextDouble(); double checking = read.nextDouble(); Account savingAcc = new SavingAcc(saving); Account checkingAcc = new CheckingAcc(checking); System.out.println(savingAcc.getIncome()); System.out.println(checkingAcc.getIncome()); } } class Account { private double amount; public Account(double amount) { this.amount = amount; } public double getAmount() { return amount; } public double getIncome() { return 0; } } class SavingAcc extends Account { public SavingAcc(double amount) { super(amount); amount = super.getAmount(); } //Переопределите метод для сберегательного счета public double getIncome() { return amount + amount * 0.2; } } class CheckingAcc extends Account { public CheckingAcc(double amount) { super(amount); amount = super.getAmount(); } //Переопределите метод для чекового счета public double getIncome() { return amount + amount * 0.05; } } }