create new tag
, view all tags

Zu Übung 13 (Lambda, anonyme Funktionen)

Beispiel für ein function interface:

public interface Function {
    double eval(double x);

Beispiel für die Nutzung:

   public static void printFunctionValue(Function f, double x){
    public static void main(String[] args) {
        printFunctionValue(x -> x * x, 10 );
        Function f = x -> x + 2;
        printFunctionValue(f, 20);        
Topic revision: r1 - 2016-10-17 - PeterDittrich
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort