From c8cff2bcfe29a3af31a6b7374a7a6d17a4cab0fb Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sat, 23 Jul 2022 00:55:17 +0530 Subject: [PATCH 01/10] Update README.md --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 78e401a..797ea36 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ -### All the codes and notes of (Core Java Tutorials by Telusko) +### Core Java Tutorials by Telusko + +This repo contains all the codes and notes of the amazing [Core Java Tutorials by Telusko](https://www.youtube.com/watch?v=WOUpjal8ee4&list=PLsyeobzWxl7oZ-fxDYkOToURHhMuWD1BK) + +The tutorial is broken down into 18 modules: +1) Intro to Java +2) Variables +3) How Java works? +4) Operators +5) If-else, Loops +6) Arrays +7) Class and Object +8) OOPS Concepts +9) String + StringBuilder + StringBuffer +10) Exception Handling +11) Object Cloning + Serialization +12) File Handling + Serializable +13) Multithreading +14) Collection and Generics +15) Inner Class + Enum + Annotations +16) Stream API +17) New DateTime api From 55aa08ed1821cee5fe170ab9b89b13d8a9da0525 Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sat, 23 Jul 2022 00:56:50 +0530 Subject: [PATCH 02/10] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 797ea36..daf8ef8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repo contains all the codes and notes of the amazing [Core Java Tutorials by Telusko](https://www.youtube.com/watch?v=WOUpjal8ee4&list=PLsyeobzWxl7oZ-fxDYkOToURHhMuWD1BK) -The tutorial is broken down into 18 modules: +This tutorial is broken down into 18 modules: 1) Intro to Java 2) Variables 3) How Java works? @@ -18,5 +18,5 @@ The tutorial is broken down into 18 modules: 13) Multithreading 14) Collection and Generics 15) Inner Class + Enum + Annotations -16) Stream API -17) New DateTime api +17) Stream API +18) New DateTime api From 0a3c7b4fbe7be5edea1aedc4911131380b84dd2d Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:45:17 +0530 Subject: [PATCH 03/10] Formatting changes --- 13 - Multithreading/13.5 - Thread Priority/src/Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/13 - Multithreading/13.5 - Thread Priority/src/Test.java b/13 - Multithreading/13.5 - Thread Priority/src/Test.java index 10c6e7f..8ee82f0 100644 --- a/13 - Multithreading/13.5 - Thread Priority/src/Test.java +++ b/13 - Multithreading/13.5 - Thread Priority/src/Test.java @@ -28,8 +28,8 @@ public static void main(String[] args) throws InterruptedException { System.out.println("BYEEE IN BETWEEN"); // This won't be printed at the end because Main thread is idle and will execute this before only. System.out.println("Is t1 alive: " + t1.isAlive()); - t1.join(); // will wait for t1 to complete execution and join main thread - t2.join(); // will wait for t2 to complete execution and join main thread + t1.join(); // will wait for t1 to complete execution and join main thread + t2.join(); // will wait for t2 to complete execution and join main thread System.out.println("BYEE AT THE END"); System.out.println("Is t1 alive: " + t1.isAlive()); From 666406770a1f63e80de0df066643b988525124fc Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:46:18 +0530 Subject: [PATCH 04/10] Formatting changes --- .../src/Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/17 - Stream API/17.1 - Printing values using external iteration/src/Test.java b/17 - Stream API/17.1 - Printing values using external iteration/src/Test.java index 54f60cb..07f472f 100644 --- a/17 - Stream API/17.1 - Printing values using external iteration/src/Test.java +++ b/17 - Stream API/17.1 - Printing values using external iteration/src/Test.java @@ -15,7 +15,7 @@ External Iterations (loop outside the object) - for each loop Internal Iterations (loop inside the object) - forEach method - */ +*/ import java.util.Arrays; import java.util.Iterator; From c0165c829f30a6507e0ffc5c38cac27fc8ccc86c Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:46:57 +0530 Subject: [PATCH 05/10] Formatting changes --- 18 - New DateTime Api/18.1 - New DateTime Api/src/Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/18 - New DateTime Api/18.1 - New DateTime Api/src/Test.java b/18 - New DateTime Api/18.1 - New DateTime Api/src/Test.java index e681ea4..42a9894 100644 --- a/18 - New DateTime Api/18.1 - New DateTime Api/src/Test.java +++ b/18 - New DateTime Api/18.1 - New DateTime Api/src/Test.java @@ -10,7 +10,7 @@ Changes in new DateTime API: - new package time was created - Date object only print Date now, and not Time to avoid confusion - */ +*/ import java.time.Instant; import java.time.LocalDate; From 02b741ce6cda318eac14838a4cd7e5935119562f Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:47:27 +0530 Subject: [PATCH 06/10] Formatting changes --- .../9.3 - User input using System.in.read()/src/Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9 - String + Builder + Buffer/9.3 - User input using System.in.read()/src/Test.java b/9 - String + Builder + Buffer/9.3 - User input using System.in.read()/src/Test.java index 8f79476..dfd0574 100644 --- a/9 - String + Builder + Buffer/9.3 - User input using System.in.read()/src/Test.java +++ b/9 - String + Builder + Buffer/9.3 - User input using System.in.read()/src/Test.java @@ -6,7 +6,7 @@ - returns byte value in the form of int in range 0 to 255 - that value is basically the ascii value of that character - not efficient - */ +*/ public class Test { public static void main(String[] args) throws Exception { From 1582f318c874cc8e5039991500a46e24191171c3 Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:49:01 +0530 Subject: [PATCH 07/10] Formatting changes --- .../17.12 - 17.16 Stream Map, Reduce methods/src/Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java b/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java index a67f048..0cab3b2 100644 --- a/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java +++ b/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java @@ -5,7 +5,7 @@ Internal Iterations: (Stream API) - just focus on what to do - */ +*/ import java.util.Arrays; import java.util.List; From 6c92e7f64a05923e5cf4fc419d2400bad44aeffc Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Sun, 24 Jul 2022 23:49:46 +0530 Subject: [PATCH 08/10] Formatting changes --- .../17.12 - 17.16 Stream Map, Reduce methods/src/Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java b/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java index 0cab3b2..190f669 100644 --- a/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java +++ b/17 - Stream API/17.12 - 17.16 Stream Map, Reduce methods/src/Test.java @@ -19,8 +19,8 @@ public static void main(String[] args) { // We need to find the sum of all the values*2 - int result = 0; // 1) Using traditional for-each loop + int result = 0; for (int value : values) { result += value*2; } From 4063b2f7fa187402ceef8d618c8558bfcd973289 Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Mon, 25 Jul 2022 23:52:53 +0530 Subject: [PATCH 09/10] Formatting corrected --- .../15.2 - Inner Member Class/src/Test.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java b/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java index e2f8c00..dfd912b 100644 --- a/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java +++ b/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java @@ -43,12 +43,14 @@ public static void main(String[] args) { class A { int ma; + // 1) Member Inner Class class B { int mb; } static int sa; + // 2) Static Inner Class static class C { int mc; From 18ca3ad9b364cd0ddb37b9114c5b42f6ebcfd2b2 Mon Sep 17 00:00:00 2001 From: Saumay Khandelwal Date: Mon, 25 Jul 2022 23:54:41 +0530 Subject: [PATCH 10/10] Formatting corrected --- .../15.2 - Inner Member Class/src/Test.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java b/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java index dfd912b..e2f8c00 100644 --- a/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java +++ b/15 - Inner Class + Enum + Annotations/15.2 - Inner Member Class/src/Test.java @@ -43,14 +43,12 @@ public static void main(String[] args) { class A { int ma; - // 1) Member Inner Class class B { int mb; } static int sa; - // 2) Static Inner Class static class C { int mc;