添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
耍酷的茶叶  ·  Is there a list of ...·  3 月前    · 
开朗的卡布奇诺  ·  Sample Scripts | ...·  3 月前    · 
曾经爱过的吐司  ·  System.Windows.Markup. ...·  6 月前    · 
逆袭的菠萝  ·  python调用powershell - ...·  1 年前    · 

Parameters

The condition to be met by the collection element is specified in the closure that must be some Boolean expression.

Return Value

The find method returns a list of all values found as per the expression.

Example

Following is an example of the usage of this method −

class Example {
   static void main(String[] args) {
      def lst = [1,2,3,4];
      def value;
      value = lst.findAll{element -> element > 2}
      value.each {println it}

When we run the above program, we will get the following result −

Previous Page:-Click Here