return (list.stream().count(e -> (e % 2) == 0) > 1);
                  
                  
                      return (list.stream().filter(e -> (e % 2) == 0).count() > 1);
                  
                  
                    }
                  
                  
                  
                  
                  
                  Can you explain why the commented line doesn't work?
                  
                  
                
You should really see how count works
Обсуждают сегодня