How to implement boolen in this arraylist problems?

Printable View