0
          ''' hallList.add(new BanquetHall(1,"da","es","2011/02/20",90));
             hallList.add(new BanquetHall(2,"ffd","fdfs","2020/11/01",100));
             hallList.add(new BanquetHall(3,"df","gfddccc","2020/11/01",100));
             
             System.out.println("What hall value you want to remove?");
             Scanner deletevalue = new Scanner(System.in);
             int del = deletevalue.nextInt();
             hallList.remove(del);
             
            System.out.println("After removing the hall: " );
            System.out.println(hallList); '''

OUTPUT :

What hall values you want to remove 1 After removing the hall: [xyz.BanquetHall@12edcd21, xyz.BanquetHall@34c45dca]

Kav9kri
  • 1
  • 1

1 Answers1

-1

you have to call toString method. try below code out.

System.out.println(toString(hallList));