i have an arraylist and i want to pass it to another classes to check availability and it's expired dates what are the methods ?? :    



 public Boolean Checkup (Product[]x, String code ) { 
      

       if (Product.contains(true)) {
       \\ why it is error    
           System.out.println("Product is availible");
       } 
       else 
       {
           System.out.println("Product is not availible");
       }
      
    }