ObjDoubleConsumer example

Description

ObjDoubleConsumer represents an operation that accepts an object-valued and a double-valued argument, and returns no result. This is the reference, double specialization of BiConsumer.

Example

The following example shows how to use ObjDoubleConsumer.


import java.util.function.ObjDoubleConsumer;
/*w  w w . ja  va2  s.co  m*/
public class Main {

  public static void main(String[] args) {
    ObjDoubleConsumer<String> i  = (s,d)->System.out.println(s+d);
    
   
    i.accept("java2s.com ",0.1234);
  }
}

The code above generates the following result.