Your task is to create a BankAccount object named account1 w…
Your task is to create a BankAccount object named account1 with your name and any amount as parameters and then call the getBalance() method on account1. public class BankAccountDemo(){ public static void main(String[] args){ //Your code here }}