From cff1c1177feed7014248e70b318df5d9a1cb617e Mon Sep 17 00:00:00 2001 From: shubhampaliwal Date: Fri, 6 Oct 2023 18:59:37 -0400 Subject: [PATCH 1/2] hello world written using lambda expression --- Java/LambdaHelloWorld.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Java/LambdaHelloWorld.java diff --git a/Java/LambdaHelloWorld.java b/Java/LambdaHelloWorld.java new file mode 100644 index 0000000..e4e7b78 --- /dev/null +++ b/Java/LambdaHelloWorld.java @@ -0,0 +1,5 @@ +public class LambdaHelloWorld { + public static void main(String[] args) { + "Hello, World!".chars().mapToObj(c -> (char) c).forEach(System.out::println); + } +} \ No newline at end of file From cdf3ba80e5cbe7f654a75ce037cb34f7572ac710 Mon Sep 17 00:00:00 2001 From: shubhampaliwal Date: Fri, 6 Oct 2023 19:07:29 -0400 Subject: [PATCH 2/2] Added contributers name to readme file --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6a06bbd..f751f1b 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,4 @@ Feel free to add your username here :) * [MauricioLanda](https://github.com/MauricioLanda) * [ShannonMCook](https://github.com/shannonmcook) * [Lashuk1729](https://github.com/Lashuk1729) +* [shubhampaliwal3011](https://github.com/shubhampaliwal3011)