Topics

Leave a Reply

42 Comments on "Java 8 Lambda Basics 10 – Type Inference"

Notify of
avatar

Zeyad Ahmed
Guest
Zeyad Ahmed
11 days 11 hours ago

It's really an excellent tutorial

Nitish kumar
Guest
Nitish kumar
19 days 5 hours ago
package com.nitish.lambda;public class HelloWorld { public static void main(String[] args) { CalculatorLambda add = (int x, int y) -> (x + y); System.out.println(add.foo(4, 5)); CalculatorLambda multiply = (int x, int y) -> (x * y); System.out.println(multiply.foo(4, 5)); CalculatorLambda divide = (int x, int y) -> (x / y); System.out.println(divide.foo(4, 5)); CalculatorLambda substract = (int x, int y) -> (x – y); System.out.println(substract.foo(4, 5)); }}public interface CalculatorLambda { int foo(int a,int b);}Will this be considered a simple example of lambda expression?I just started with something simple but not sure it's just beginning.Please let me know ?
Nitish kumar
Guest
Nitish kumar
19 days 5 hours ago
package com.nitish.lambda;public class HelloWorld { public static void main(String[] args) { CalculatorLambda add = (int x, int y) -> (x + y); System.out.println(add.foo(4, 5)); CalculatorLambda multiply = (int x, int y) -> (x * y); System.out.println(multiply.foo(4, 5)); CalculatorLambda divide = (int x, int y) -> (x / y); System.out.println(divide.foo(4, 5)); CalculatorLambda substract = (int x, int y) -> (x – y); System.out.println(substract.foo(4, 5)); }}public interface CalculatorLambda { int foo(int a,int b);}Will this be considered a simple example of lambda expression?I just started with something simple but not sure it's just beginning.Please let me know ?
Victor Oben
Guest
Victor Oben
27 days 17 hours ago

Awesome tutorials, keep it up man

Victor Oben
Guest
Victor Oben
27 days 17 hours ago

Awesome tutorials, keep it up man

Sagar Kumar
Guest
Sagar Kumar
27 days 22 hours ago

You are doing excellent. I was searching to understand lambda expression in easy way. And you make us possible. Thank you so much.

Sagar Kumar
Guest
Sagar Kumar
27 days 22 hours ago

You are doing excellent. I was searching to understand lambda expression in easy way. And you make us possible. Thank you so much.

Ana matamoros
Guest
Ana matamoros
29 days 3 hours ago

Finally a tutorial that i can understand about lambda expressions!

Ana matamoros
Guest
Ana matamoros
29 days 3 hours ago

Finally a tutorial that i can understand about lambda expressions!

Christopher Coy
Guest
Christopher Coy
3 months 23 days ago

You explain things in the best way, in the right order… the order someone builds a foundation of understanding. Nice!

1 2 3 4
wpDiscuz