Commit Graph

2598 Commits

Author SHA1 Message Date
davidmartinezbarua dd20ceda79 Merge pull request #13341 from StefSC/BAEL-5788
[BAEL-5788] Accessing Private Constructor
2023-03-02 10:39:27 -03:00
Loredana Crusoveanu 416dc0492d Merge pull request #13373 from honeykakkar/patch-2
Fix link to the previous article in README.md
2023-03-01 19:47:43 +02:00
Sam Gardner 47b47b0fd9 BAEL-5836 Add unit tests for moving items in an arraylist 2023-02-27 15:47:00 +00:00
Michael Olayemi 41b3460af6 BAEL-5741 Download a Webpage in Java (#13531)
* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java
2023-02-26 08:56:44 +05:30
Shaun Phillips 8fd4ad46ea BAEL-5915 Added different ways to create an object (#13539) 2023-02-25 09:45:16 -08:00
edizor ae1621f6fd Update README.md
[skip ci]
2023-02-24 19:39:09 +08:00
edizor aeaa4beb84 Update README.md
[skip ci]
2023-02-24 19:35:00 +08:00
edizor 9a0a3f3b8c Update README.md
[skip ci]
2023-02-24 19:25:01 +08:00
edizor 941d8dbc7d Update README.md
[skip ci]
2023-02-24 19:22:20 +08:00
edizor 8ca6e679b1 Update README.md
[skip ci]
2023-02-24 19:18:00 +08:00
edizor e6f03563c9 Update README.md
[skip ci]
2023-02-24 19:15:33 +08:00
edizor 25e159150f Update README.md
[skip ci]
2023-02-24 19:11:49 +08:00
edizor b26d2b6932 Update README.md
[skip ci]
2023-02-24 19:08:29 +08:00
Ulisses Lima 8db563d9f9 deprecation 2023-02-22 22:19:08 -03:00
2406ankita 14ce0136bd Finding All Duplicates in a List in Java- BAEL-6075 (#13291)
* Deep & Shallow Copy

* Revert "Deep & Shallow Copy"

This reverts commit 62f75b002a21feb90c0b6be02072356b64284283.

* duplicates in a list in java

* Unit test changes

* unit test changes

* Tests change after review

* Code formatted

* code formatted

* new module core-java-lang-6

* entry in parent pom and test setup method name change

* module renamed

* parent pom entry added

* pom.xml changes reverted
2023-02-22 18:36:23 +05:30
alemoles 9089d84d2b BAEL-5912 Introduction to RoaringBitmap (#13326) 2023-02-21 21:50:33 +05:30
timis1 253c01ef4f JAVA-18445 Cleanup un-committed or un-ignored artifacts - Week 6 - 2023 (conti-1) (moved-1) (#13510)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-02-21 00:38:16 +05:30
Palaniappan Arunachalam 8f2e92dacb BAEL-6154: Migrate from Java 8 to Java 17 + tests (#13474) 2023-02-20 09:43:42 +05:30
edizor 1d7737dc5f Update README.md
[skip ci]
2023-02-19 08:02:49 +08:00
Bhaskar Ghosh Dastidar e11c4e3dbc [JAVA-6143] java copy from one hashmap to another (#13497)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-02-18 08:57:14 -08:00
Shaun Phillips ba8a44b0ca BAEL-4487 remove padding that causes non-deterministic behaviour (#13425) 2023-02-18 13:09:04 +01:00
sam-gardner 92864107b9 BAEL-6100-Add-example-code-for-integer-array-to-strings-using-streams… (#13375)
* BAEL-6100-Add-example-code-for-integer-array-to-strings-using-streams-tutorial

* BAEL-6100 remove wrongly added README update

* BAEL-6100 Add interger array to single string example

* BAEL-6100 Correct typo in test class name
2023-02-18 09:53:54 +05:30
AttilaUhrin 4acdb03e61 [BAEL-6027] Add example for Awaitility and Thread.sleep comparison (#13450)
* Add example for Awaitility and Thread.sleep comparison

* Fix unit test method name and indentation.

* Use property in pom.xml for awaitility dependency version.

---------

Co-authored-by: Uhrin Attila <attila.uhrin@frontendart.com>
2023-02-18 08:34:25 +05:30
davidmartinezbarua db2d8069e3 Merge pull request #13475 from StefSC/BAEL-5788-Private-Constructor
[BAEL-5788] Accessing Private Constructor
2023-02-17 21:03:32 -03:00
Kai Yuan 95fd310053 [2lists-to-map] Combining Two Lists into a Map in Java (#13484)
* [2lists-to-map] Combining Two Lists into a Map in Java

* [2lists-to-map] rename package
2023-02-17 10:04:37 -06:00
edizor d338276216 Update README.md
[skip ci]
2023-02-17 18:49:11 +08:00
edizor ad5d08e619 Update README.md
[skip ci]
2023-02-17 18:44:12 +08:00
edizor 2ea6076ed8 Update README.md
[skip ci]
2023-02-17 18:36:58 +08:00
edizor bbe335889c Update README.md
[skip ci]
2023-02-17 18:27:38 +08:00
edizor cd0f18fcfb Update README.md
[skip ci]
2023-02-17 17:27:55 +08:00
edizor 0b4f4d5566 Update README.md
[skip ci]
2023-02-17 17:01:56 +08:00
Loredana Crusoveanu c85a69f2cc Merge pull request #13316 from anastasiosioannidis/JAVA-17608
JAVA-7608
2023-02-15 16:26:12 +02:00
Anastasios Ioannidis ed51bc4cda JAVA-17608 Restored AtomicInteger default increment method 2023-02-15 10:14:28 +02:00
Iniubong LA e173c125f0 Difference Between Function(String… args) and Function(String[] args) (#13473) 2023-02-15 08:07:51 +01:00
Stef Serban-Cristian cb308a89e8 [BAEL-5788] Accessing Private Constructor 2023-02-13 23:42:35 +02:00
Kai Yuan 8e7055060f [is-object-array] Check if Object is an Array in Java (#13463) 2023-02-12 23:14:55 -06:00
Alexandru Borza 5b852b64b5 BAEL-6195 Find the First Embedded Occurrence of an Integer in a Java String (#13448)
* initialize arraylist with null or zeros

* configure pom parent

* move code

* delete module

* BAEL-6195

* first occurence of an integer

* review changes
2023-02-11 10:08:29 +05:30
Michael Olayemi 749cace098 BAEL-5729 Convert Hex to RGB Using Java (#13432) 2023-02-11 09:49:29 +05:30
Roger 5fb9fe4642 BAEL-5720 Java HttpClient Connection Management (#13452)
* BAEL-5642 Using @NotNull as a method parameter

* BAEL-5642 Add Spring Boot and bump spring and hibernate-validator versions

* BAEL-5720 Java HttpClient Connection Management

* BAEL-5720 Java HttpClient Connection Management

* BAEL-5720 move JavaHttpClient test to core-java-httpclient module

* BAEL-5720 move jetty-logging-properties to core-java-httpclient module

* BAEL-5720 add wiremock to pom

* Update pom.xml

* Delete jetty-logging.properties

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
2023-02-10 08:19:24 -08:00
Arya e48229dc25 Record vs Final class in Java (#13455)
* Added code for record vs final.

* Fixed a small mistake.
2023-02-09 09:58:24 -08:00
edizor a621e30de6 Update README.md
[skip ci]
2023-02-09 08:01:56 +08:00
edizor 220a73e43b Update README.md
[skip ci]
2023-02-09 07:51:27 +08:00
edizor ada858078f Update README.md
[skip ci]
2023-02-09 07:18:14 +08:00
edizor 66ebab819e Update README.md
[skip ci]
2023-02-09 07:13:07 +08:00
Dmitriy Budim 6a7adf631d [Difference Between Class.forName() and Class.forName().newInstance()] sample code (#13451) 2023-02-08 22:48:26 +01:00
timis1 940cc28ef5 JAVA-17333 Update Java Timer Article (#13423)
* JAVA-17333 Update Java Timer Article

* JAVA-17333 Rename the test class

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
2023-02-08 21:47:09 +05:30
Kai Yuan 0adee1c8d7 [streamOf-vs-intStreamRange] Understanding the Difference Between Str… (#13429)
* [streamOf-vs-intStreamRange] Understanding the Difference Between Stream.of and IntStream.range

* [streamOf-vs-intStreamRange] fix indent
2023-02-07 18:49:49 -06:00
vunamtien 35e516d31e BAEL-6049-validate-ipv4-address (#13287)
* validate ipv4

* add unit test

* add more unit tests

* add more unit tests

* add more unit test

---------

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2023-02-06 18:54:29 +00:00
Kai Yuan c0be80a64a [instanceOf-stream] Checking instanceof in Java Stream (#13419) 2023-02-04 10:12:16 -06:00
Loredana Crusoveanu 03aa2d8920 Merge pull request #13416 from edizor/master
Update README
2023-02-03 17:32:16 +02:00
Ulisses Lima 98560f9d93 calling start() (#13417) 2023-02-02 22:43:55 +01:00
edizor 5ae8fa5069 Update README.md
[skip ci]
2023-02-02 23:29:26 +08:00
edizor c31505b584 Update README.md
[skip ci]
2023-02-02 23:27:36 +08:00
edizor 8765a412dc Update README.md
[skip ci]
2023-02-02 23:20:20 +08:00
edizor ccd2927e3a Update README.md
[skip ci]
2023-02-02 23:00:22 +08:00
edizor 6c90868613 Update README.md
[skip ci]
2023-02-02 22:55:14 +08:00
edizor 04ad33b9ba Update README.md
[skip ci]
2023-02-02 22:37:10 +08:00
Kai Yuan cb98df168b [abs-int-diff] Return Absolute Difference Between Two Integers in Java (#13379) 2023-02-01 21:01:09 -06:00
Olu c919c5e70c BAEL 5932 - Callback Functions in Java (#13364) 2023-02-01 08:04:40 +01:00
Kai Yuan 226fa47606 [strArrayToIntArray] convert str array to int array (#13217) 2023-01-31 20:11:14 -06:00
davidmartinezbarua ba8f9a6437 Merge pull request #13077 from sebx59/master
BAEL-5727 - Determine If a Class Implements an Interface in Java
2023-01-31 17:25:50 -03:00
sebx59 587d69af32 updated Unit test to add assertions examples 2023-01-31 09:23:52 +01:00
Bhaskar Ghosh Dastidar 9d3667ac77 [JAVA-5783] stream to iterable (#13369)
* [JAVA-5783] stream to iterable

* [JAVA-5783] tests refactor

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-01-31 08:16:11 +05:30
alemoles b40a061969 BAEL-5924 Java 8 Stream with Batch Processing Support (#13366) 2023-01-30 22:49:57 +05:30
Loredana Crusoveanu aab7f72429 Merge pull request #13363 from timis1/JAVA-17293
JAVA-17293 Update Java Mail articles
2023-01-30 13:08:45 +02:00
Alexandru Borza 068d3cc439 BAEL-6146 - Initialize an ArrayList with All Zeroes or Null in Java (#13368)
* initialize arraylist with null or zeros

* configure pom parent

* move code

* delete module
2023-01-29 14:51:12 -08:00
Honey Kakkar aecdc1a38d Fix link to the previous article in README.md
Currently, "prev" points to "/core-java-modules/core-java-collections-1" which is not a valid relative directory in repository.
2023-01-29 13:51:18 -05:00
Kai Yuan 7605f8474c [int-zero-or-null] Check if an Integer Value is null or Zero in Java (#13332) 2023-01-28 11:29:20 -06:00
Loredana Crusoveanu f75949b0e4 Merge pull request #13359 from ulisseslima/bael-5999-quickfix_compile-string
BAEL-5999 - Compiling and Executing Code From a String in Java - quick fix
2023-01-28 17:27:19 +02:00
Iulian Timis de1c280736 JAVA-17293 Fix java version problem for java bind 2023-01-28 16:16:01 +02:00
Iulian Timis 601af9b61a JAVA-17293 Update Java Mail articles for core-java-networking-3 2023-01-28 13:15:21 +02:00
Iulian Timis 2db1dd4a60 JAVA-17293 Update Java Mail articles 2023-01-28 12:47:15 +02:00
Kai Yuan 185093c26a [comp-str-enum] Comparing a String to an Enum Value in Java (#13349) 2023-01-27 20:56:13 -06:00
Olu d7e857f427 BAEL 5932 - Callback Functions in Java (#13335) 2023-01-27 21:37:47 +01:00
Ulisses Lima b389ecad46 inverting condition to match the article 2023-01-27 13:32:59 -03:00
Michael Olayemi b5d8f4e93c BAEL-5952-Java HttpClient - Map Json Response to Java Class (#13234)
* Java HttpClient - Map Json Response to Java Class

* BAEL-5952-Java HttpClient - Map Json Response to Java Class

* BAEL-5952-Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class
2023-01-27 12:52:01 +05:30
edizor ad45161555 Update README.md
[skip ci]
2023-01-26 16:21:14 +08:00
edizor ba0889aa72 Update README.md
[skip ci]
2023-01-26 16:16:09 +08:00
edizor 47698ae01c Update README.md
[skip ci]
2023-01-26 16:12:14 +08:00
edizor eb81632bc7 Update README.md
[skip ci]
2023-01-26 16:03:26 +08:00
edizor 1a4312f22b Update README.md
[skip ci]
2023-01-26 15:57:56 +08:00
Stef Serban-Cristian c467321957 [BAEL-5788] Accessing Private Constructor 2023-01-24 11:25:30 +02:00
Kilian Schneider 69f6e11088 BAEL-6091 structured concurrency (#13297) 2023-01-23 12:57:00 -08:00
timis1 ea9bf9ebeb JAVA-17420 Update The transient Keyword in Java Article (#13321)
Co-authored-by: Iulian Timis <iulian.timis@tora.com>
2023-01-23 23:57:35 +05:30
Kai Yuan 0162d98907 [bigDecimal-x-int] Multiply a BigDecimal By an Integer in Java (#13320) 2023-01-23 10:41:19 -06:00
hajarrs 4b3a693263 Check If Command Line Arguments Are Null in Java (#13246) 2023-01-23 19:04:39 +05:30
Vali Tuguran fa6b78233c BAEL-6040 Add Java List tests. (#13255)
* BAEL-6040 Add list interface example.

* BAEL-6040 Updated list iterator.

* BAEL-6040 Removed logger import.

* BAEL-6040 Added List interface tests.

* BAEL-6040 Update tests success names.

* BAEL-6040 Small names refactoring.

* BAEL-6040 Add new core-java-collections-5 module.

* BAEL-6040 Create module core-java-collections-list-5.

* BAEL-6040 Create module core-java-collections-list-5.
2023-01-21 21:39:34 -07:00
Azhwani 3b770c4dee BAEL-6044: Fix the IllegalArgumentException: No enum const class (#13171) 2023-01-21 16:16:18 +01:00
edizor b2731db3ef Update README.md
[skip ci]
2023-01-20 16:31:09 +08:00
edizor 5e420e34e1 Update README.md
[skip ci]
2023-01-20 16:27:49 +08:00
edizor 9b0daac640 Update README.md
[skip ci]
2023-01-20 16:24:48 +08:00
edizor a028f31823 Update README.md
[skip ci]
2023-01-20 16:21:36 +08:00
edizor a8b953195d Update README.md
[skip ci]
2023-01-20 16:17:17 +08:00
edizor 0c3db032b8 Update README.md
[skip ci]
2023-01-20 16:11:34 +08:00
edizor cf1f2e87c2 Merge branch 'eugenp:master' into master 2023-01-20 16:10:28 +08:00
Iniubong LA 305b369f5d arthurshur@gmail.com (#13275)
* Creating a deep vs shallow copy of an object in Java

* Creating a deep vs shallow copy of an object in Java

* Baeldung article converting number bases

* Baeldung article converting number bases

* edits made to Converting a Number from One Base to Another in Java

* added braces to oneliners

* added precondition to check input
2023-01-19 11:03:51 -08:00
Bhaskar Ghosh Dastidar fd1c286570 [JAVA-5730] convert list of objects to list of strings (#13166)
* [JAVA-5730] convert list of objects to list of strings

* [JAVA-5730] added new unit tests with null and non-null lists. modified pom.xml with java version to 16

* [JAVA-5730] simplified User class and formatted the codebase

* [JAVA-5730] added module in jdk-9 and above profile

* [JAVA-5730] removed arraylist module from other profiles of core-java pom

* [JAVA-5730] java util opened for reflection surefire plugin

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-01-18 19:53:05 -07:00
edizor 00913e061a Update README.md
[skip ci]
2023-01-19 07:44:33 +08:00
edizor f08815a84f Update README.md
[skip ci]
2023-01-19 07:30:26 +08:00
IfThen2 eef1e05017 code for BAEL-5999 Converting String Object to Java Compilable Code (#13179)
* code for BAEL-5999 Converting String Object to Java Compilable Code

* move code from core-java-jvm-2 to core-java-jvm-3
fix unit test name
fix core-java-jvm-3 test directory structure
disable non-working unit tests from core-java-jvm-3
2023-01-18 18:24:00 +05:30
alemoles de6d2bc25c BAEL-5924 Java 8 Stream with Batch Processing Support (#13203) 2023-01-18 18:18:57 +05:30
HARDEMAN Sébastien 33474c6096 case correction 2023-01-18 10:39:54 +01:00
Kai Yuan a4f6d89cc7 [store-triple-in-list] Storing Data Triple in a List in Java (#13295)
* [store-triple-in-list] Storing Data Triple in a List in Java

* [store-triple-in-list] method name "give..."->"given..."
2023-01-17 17:15:26 -06:00
jsgrah-spring c217f7e95c JAVA-15621, Potential issue in "Guide to UUID in Java" article. (#13271)
* JAVA-15621, Potential issue in "Guide to UUID in Java" article.

* JAVA-15621, Keep the raw strings in the article to make it easy for users to understand.

* JAVA-15621, Keep the raw strings in the article to make it easy for users to understand.

Co-authored-by: jogra <joseph.sterling.grah@miles.no>
2023-01-16 23:07:14 +05:30
Thiago dos Santos Hora 227fa03142 BAEL-5959: Adjust code style (#13299)
* BAEL-5959: Monad in Java

* Fix test name

* Fix code style
2023-01-16 08:30:08 -08:00
Kai Yuan c0157effb0 [List-CaseInsenContains] Case-Insensitive Searching in ArrayList (#13280) 2023-01-13 20:34:54 -06:00
panos-kakos 13097b458f Java 16961 (#13236)
* [JAVA-16961] Moved code for article "Create an Empty Map in Java"

* [JAVA-16961] Alter README.md

* [JAVA-16961] Moved code for article "Sorting a Hashset in Java"

* [JAVA-16961] Added links to README.md files

* [JAVA-16961] Revert link changes

* [JAVA-16961] Replaced junit4 with junit5 annotations

* [JAVA-16961] test build

* [JAVA-16961] Added junit annotations

* [JAVA-16961] Added links

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-01-13 20:07:27 +05:30
pedrolopes f6f63673a9 BAEL-5873: Check If All the Variables of a Class Are Null (#13285)
* model classes. unit tests. apache lang3 dependency.

* fix PR build
2023-01-12 18:28:36 -08:00
Thiago dos Santos Hora 3c12edb5f6 BAEL-5959: Monad in Java (#13278)
* BAEL-5959: Monad in Java

* Fix test name
2023-01-12 18:23:34 -08:00
Loredana Crusoveanu 86aedea66b Merge pull request #13273 from edizor/master
Update README
2023-01-11 13:09:01 +02:00
Vartika Nigam dcbb336236 added an example of anonymous class and lambda expression (#13241)
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
2023-01-11 10:26:58 +01:00
edizor b227ad01e3 Create README.md
[skip ci]
2023-01-11 15:35:30 +08:00
edizor 7670976877 Update README.md
[skip ci]
2023-01-11 15:27:56 +08:00
edizor b7cd83a56a Update README.md
[skip ci]
2023-01-11 15:19:44 +08:00
edizor bc9b4ab88b Update README.md
[skip ci]
2023-01-11 15:05:55 +08:00
edizor 14594c2b94 Update README.md
[skip ci]
2023-01-11 14:48:42 +08:00
Iniubong LA d2f52b059f arthurshur@gmail.com (#13265)
* Creating a deep vs shallow copy of an object in Java

* Creating a deep vs shallow copy of an object in Java

* Baeldung article converting number bases

* Baeldung article converting number bases
2023-01-09 13:05:23 -08:00
chrisjaimes b6075009b0 BAEL-5822 printstream vs printwriter (#13199)
* BAEL-5822 pr with streams implementation, unit test and resource file for testing

* fix unit tests names

* swap arguments in assertion

Co-authored-by: Christian Jaimes <christian.jaimes@oracle>
2023-01-09 11:52:25 +01:00
edizor 66f5823c5d Merge branch 'eugenp:master' into master 2023-01-07 15:43:14 +08:00
Kilian Schneider 0a9424696a feat BAEL-6092 Record Patterns (#13243)
* feat BAEL-6092 Record Patterns

* Update pom.xml

* Update pom.xml

* Add additional Switch Test Case
2023-01-06 14:12:38 -08:00
Kai Yuan 962ed719ac [clsTypeByString] get class object from a string (#13233) 2023-01-05 21:29:23 -06:00
edizor 16deccb5ba Update README.md
[skip ci]
2022-12-28 17:45:03 +08:00
Shaun Phillips ab892ba982 BAEL-4487 Add Crypto Exceptions (#13183) 2022-12-28 08:52:02 +01:00
panos-kakos d01629a246 Java 16960 (#13201)
* [JAVA-16960]

* [JAVA-16960]

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-12-28 00:28:30 +05:30
Loredana Crusoveanu 9215eee368 Merge pull request #13184 from edizor/master
Update README
2022-12-23 16:39:32 +02:00
Grzegorz Piwowarek 20e0ff4aa3 Fix givenOneThreadIsWriting_whenAnotherThreadWritesAtSameKey_thenWaitAndGetCorrectValue (#13186) 2022-12-22 23:18:30 +01:00
pedrolopes 0a5a54f6d0 BAEL-5946: Fix unit tests (#13187)
* consistent read unit test

* unit test to show  consistency in writing to the same key of map

* testing writes at different map key

* fix to bugs on test 1 and 2

* removing repeated tests
2022-12-22 23:18:05 +01:00
Kai Yuan efad3fe07f [BAEL-6051_intListToStrList] convert List<Integer> to List<String> (#13169) 2022-12-22 15:23:29 -06:00
freelansam f5131d9ad0 JAVA-15822: Which sub-modules aren't being built (#13153)
* JAVA-15822: Which sub-modules aren't being built

* JAVA-15822: build error

* JAVA-15822: build error

* modified comment for gcp-firebase
2022-12-23 00:33:54 +05:30
edizor fb17e68942 Update README.md
[skip ci]
2022-12-22 22:33:40 +08:00
edizor f699da12c6 Update README.md
[skip ci]
2022-12-22 22:29:03 +08:00
edizor aa58d16e8f Update README.md
[skip ci]
2022-12-22 22:25:58 +08:00
edizor 65cc5b6d05 Update README.md
[skip ci]
2022-12-22 22:13:12 +08:00
edizor 3f0c4c27a2 Update README.md
[skip ci]
2022-12-22 21:57:36 +08:00
Loredana Crusoveanu 76f06cdd9c Merge pull request #12997 from press0/master
fix getLogger class name
2022-12-22 15:37:35 +02:00
Azhwani c71ade5790 BAEL-6023: Throwing an Exception If an Optional Is Present (#13116) 2022-12-21 17:18:46 +01:00
freelansam 456652e02b JAVA-16563: Fix formatting of POMs (#13175) 2022-12-20 22:37:54 +05:30
pedrolopes 6bb5598904 BAEL-5946: Reading and Writing With a ConcurrentHashMap (#13163)
* consistent read unit test

* unit test to show  consistency in writing to the same key of map

* testing writes at different map key
2022-12-19 22:02:08 +01:00
Ulisses Lima 88f2eca118 BAEL 5842 - Calling JMX MBean Method from a Shell Script (#13028)
* bael 5842

* bael-5842 - editor review 1
2022-12-19 15:29:17 +01:00
cesarevalenti90 0fd77aa664 [BAEL 5909]-Callable vs Supplier and When to Use Them in Java (#13041)
* Added test class for a simple shallow copy and deep copy

* Added test class for a simple shallow copy and deep copy

* refactor naming of test method

* formatted

* refactor test whenIsAShallowCopyDoneByCopyConstructor_thenImmutableObjectWillNotChange

* Renamed package and added md file

* refactor README.md

* first push

* refactor

* Revert "refactor README.md"

This reverts commit eae77c453ba0bf2af62bad52dc1ed61d07931e34.

* Revert "Renamed package and added md file"

This reverts commit 42c6f97cbde39cc0a5e0bacf34f86a32ded4f4aa.

* Revert "refactor test whenIsAShallowCopyDoneByCopyConstructor_thenImmutableObjectWillNotChange"

This reverts commit 44fb57fe2b51857f960dc216d33508e718e5414f.

* Revert "formatted"

This reverts commit 44be87ef25e566b8e9175cb0fdeed7f0ef485dd3.

* Revert "refactor naming of test method"

This reverts commit 6133c31057e39b19c4978f960cda1c0ba5559aae.

* Revert "Added test class for a simple shallow copy and deep copy"

This reverts commit 2cae083578883ae693d1c5e76fd4948e213e9ea0.

* Revert "Added test class for a simple shallow copy and deep copy"

This reverts commit f43312e2c1979410409f46020a3f7d555e11e966.

* Merge prohect java-supplier-callable to project core-java-lambdas

* adjusted package name

* removed AbstractAgeCalculator.java

* added test for supplier-callable

Co-authored-by: Cesare <cesare.valenti@hotmail.com>
2022-12-19 19:23:17 +05:30
Tapan Avasthi 39f29ec690 BAEL-6015: Split String by Whitespace in Java (#13146)
- Using split() method of String class
- Using StringTokenizer class
- Using split() utility method of the StringUtils class

Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2022-12-18 22:07:11 -06:00
ACHRAF TAITAI 488bb057d6 BAEL-5927: Sorting a HashSet in Java (#13100)
* BAEL-5927: Sorting a HashSet in Java

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)
2022-12-17 20:34:14 +05:30
edizor 79255cb2c5 Update README.md
[skip ci]
2022-12-15 16:40:17 +08:00
edizor 94e813596a Update README.md
[skip ci]
2022-12-15 16:36:11 +08:00
edizor 3e0e9e6d83 Update README.md
[skip ci]
2022-12-15 16:25:54 +08:00
edizor bf0356fe47 Update README.md
[skip ci]
2022-12-15 16:19:40 +08:00
edizor 082df236be Update README.md
[skip ci]
2022-12-15 16:11:58 +08:00
edizor 6076e9622b Update README.md
[skip ci]
2022-12-15 15:53:18 +08:00
Bogdan Pistol df30c2986f https://jira.baeldung.com/browse/BAEL-5871 added sample code used in article (#12986) 2022-12-15 09:33:07 +05:30
Michael Olayemi abd9f8a38b BAEL-5979 Instanceof Alternatives (#13082)
* simple-thymeleaf-expression

* expression-update

* instanceof

* instanceof

* instanceof

* update

* Update pom.xml

* Update pom.xml

* instanceof

* update

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* update

* pom

* Revert "pom"

This reverts commit c5075e6ba7e1e91159864d57bcbc18dd90314e16.

* Revert "Update pom.xml"

This reverts commit 7dd02df1aea201572fb64d8bc4a2990a94b6b4c0.

* Revert "Revert "Update pom.xml""

This reverts commit a02a1f67d16eb0bc781cc588af48f36fcc93d601.

* Update pom.xml

* Revert "Update pom.xml"

This reverts commit 7dd02df1aea201572fb64d8bc4a2990a94b6b4c0.

* Update pom.xml

* JAVA-8436: Remove AssertJ depenendency from the child modules - part 4

* Update pom.xml

* JAVA-8436: Remove AssertJ depenendency from the child modules - part 4

* BAEL-5979 Instanceof Alternatives
2022-12-12 20:56:43 -06:00
vunamtien 9c8d1d127d BAEL-5919-java-print-pascal-triangle (#13155)
* pascal triangle

* pascal triangle

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-12-12 11:24:54 +01:00
Azhwani a288f8db7e BAEL-5844: Convert Anonymous Class into Lambda in Java (#13088) 2022-12-12 08:53:16 +01:00
apeterlic 29d97308f6 Add Type Parameter vs Wildcard in Java Generics (#12988)
* Add Type Parameter vs Wildcard in Java Generics

* Fix Logger variable and code format

* Update Cat class

* Add missing import

* Add warning comment
2022-12-12 08:35:27 +01:00
Loredana Crusoveanu 897a98ada4 Merge pull request #13145 from edizor/master
Update README
2022-12-10 15:50:02 +02:00
kwoyke 1d52e2cc86 Merge pull request #13139 from hkhan/JAVA-16711-logging-cleanup
[JAVA-16711] Remove unnecessary system out logging
2022-12-10 13:07:34 +01:00
Loredana Crusoveanu 2285190be6 Merge pull request #13063 from eugenp/sam/move-article-files
[BAEL-5684] Move article files to new module
2022-12-08 16:04:12 +02:00
edizor c9ceba772d Update README.md
[skip ci]
2022-12-08 15:43:38 +08:00
edizor 0276e154a5 Update README.md
[skip ci]
2022-12-08 15:38:32 +08:00
edizor 290eefa062 Merge branch 'eugenp:master' into master 2022-12-08 15:21:13 +08:00
Haroon Khan e367437bb7 [JAVA-16711] Remove unnecessary system out logging 2022-12-07 21:57:15 +00:00
kwoyke 85fded9b10 Merge pull request #13118 from freelansam/JAVA-16260
JAVA-16301: Check Article Code Matches GitHub
2022-12-07 20:59:38 +01:00
HARDEMAN Sebastien 61b5922c60 Merge branch 'master' of https://github.com/sebx59/tutorials 2022-12-07 15:53:55 +01:00
HARDEMAN Sebastien 9a42f64454 rework following Saajan Nagendra's review 2022-12-07 15:53:34 +01:00
edizor 671116d6ab Update README.md
[skip ci]
2022-12-07 19:31:38 +08:00
edizor 4c752a371f Update README.md
[skip ci]
2022-12-07 19:25:14 +08:00
Dhawal Kapil e9a11ae9ed JAVA-16288 Fixed core-java-jndi unit test (#13135)
* JAVA-16288 Fixed core-java-jndi unit test

* JAVA-16288 Disabled
givenNoContext_whenLookupObject_thenThrowNoInitialContext test
2022-12-07 00:20:28 +05:30
davidmartinezbarua 0a0d532995 Merge pull request #13099 from etrandafir93/features/BAEL-5819-java_collections_pecs
BAEL-5819: java collections pecs
2022-12-06 15:29:43 -03:00
Bhaskar Ghosh Dastidar e858d14b86 [JAVA-6029] reversing a stack (#13122)
* [JAVA-6029] reversing a stack

* [JAVA-6029] un-necessary file changes removed

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2022-12-06 16:56:02 +01:00
Loredana Crusoveanu 70e1917f1e Merge pull request #13130 from collaboratewithakash/master
backlink fixed
2022-12-05 17:14:23 +02:00
collaboratewithakash b68aaace05 backlink fixed 2022-12-05 16:36:12 +05:30
alemoles 316cd48b48 BAEL-5960 - Functors in Java (#13125) 2022-12-04 23:02:24 -08:00
Azhwani 5f939afaf0 BAEL-5931: Default Capacity of ArrayList (#13110) 2022-12-02 18:50:50 +01:00
freelansam 290581f15b JAVA-16301: Check Article Code Matches GitHub 2022-12-02 18:53:08 +05:30
freelansam 998415cd47 JAVA-16301: Check Article Code Matches GitHub 2022-12-02 18:45:30 +05:30
Arya c22f091771 Added the code for "Errors and Exceptions in Java". (#13104)
* Added the code for "Errors and Exceptions in Java".

* Added the unit tests.
2022-11-30 11:51:46 -08:00
jsgrah-spring 21c42ebebc JAVA-12387. Correct/Rename THREADS to TASKS and int threads to int tasks. (#13084) 2022-11-30 23:19:52 +05:30
edizor de10836e67 Update README.md
[skip ci]
2022-11-30 07:43:45 +08:00
edizor 1ba60da892 Update README.md
[skip ci]
2022-11-30 07:26:23 +08:00
edizor 9b06e15e96 Update README.md
[skip ci]
2022-11-30 07:24:05 +08:00
edizor a8f68d47af Update README.md
[skip ci]
2022-11-30 07:19:54 +08:00
Kilian Schneider 4d330a1b85 BAEL-5785 Map.of() vs Map.ofEntries() test (#13064)
* BAEL-5785 Map.of() vs Map.ofEntries() test

* Update pom.xml

* Update pom.xml

* Add immutable test case

* Update map naming
2022-11-28 20:33:35 -06:00
alemoles 965cf501f5 BAEL-5981 - String Interpolation in Java (#13092) 2022-11-27 14:28:44 -08:00
Gaetano Piazzolla 53dbea8d56 BAEL-5921 | Guide to Java Priority Queue (#13087)
* BAEL-5921 | Guide to Java Priority Queue

* BAEL-5921 | Adressed comments

* BAEL-5921 | Fixed test

* BAEL-5921 | Fixed test
2022-11-27 20:00:09 +01:00
emanueltrandafir1993 d804060040 BAEL-5819: java collections pecs 2022-11-27 19:02:37 +01:00
Olu f191427bea Convert between LocalDateTime and ZonedDateTime - BAEL-5879 (#13057)
* Creating a Deep vs Shallow Copy of an Object in Java

* completed tests for LinkedHashSet

* update

* updated PR

* swapped the order of arguments for assertEquals()

* completed code for Convert between LocalDateTime and ZonedDateTime

* fixed module name

* update

* update

* added more assertions

* update

* added more example

* update

* jenkin build error fix

* jenkin build error fix

* jenkins build fix

* fixed suggested comments

* update

* update
2022-11-27 18:16:22 +05:30
pedrolopes 790974461f BAEL-5922 User for Optional in Java (#13051)
* repositories. model class. initial tests

* tests declarative api

* removing from module java 11

* copy to optional module

* fix assertEquals import
2022-11-27 17:38:38 +05:30
edizor f43520bdd3 Update README.md
[skip ci]
2022-11-25 15:59:07 +08:00
edizor 66dbd3105e Update README.md
[skip ci]
2022-11-25 15:22:31 +08:00
edizor 065358af8f Update README.md
[skip ci]
2022-11-25 14:46:53 +08:00
edizor 7377c93d7a Update README.md
[skip ci]
2022-11-25 14:42:29 +08:00
edizor 802a0d3de7 Update README.md
[skip ci]
2022-11-25 14:36:06 +08:00
edizor ca9e3d864b Update README.md
[skip ci]
2022-11-25 14:31:33 +08:00
Bhaskar Ghosh Dastidar d74259b014 [JAVA-5980] First Non Repeating Character (#13072)
* [JAVA-5980] First Non Repeating Character

* [JAVA-5980] renamed UnitTest class

* [JAVA-5980] changed file location to core-java-string-algorithms-3

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2022-11-24 15:41:35 -08:00
panos-kakos fd1bf7a029 [JAVA-13962] Align code with article + clean up (#13012)
* [JAVA-13962] Align code with article + clean up

* [JAVA-13962] Clean up

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-25 00:53:09 +05:30
sebx59 a30a85ddd4 Merge branch 'eugenp:master' into master 2022-11-24 10:55:33 +01:00
HARDEMAN Sebastien 28f0b329e7 BAEL-5727 - Determine If a Class Implements an Interface in Java
Data model and unit test Class for the BAEL-5727 - Determine If a Class Implements an Interface in Java
2022-11-24 10:49:09 +01:00
Harry9656 21c735364e [JAVA-4543]: Improve Guide to UUID in Java (#12962)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-11-23 17:32:29 +00:00
Harry9656 0ecc5b2c11 [Java-5762]: Using Pipes in Runtime.exec() Command (#12941)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-11-23 17:31:21 +00:00
Harry9656 66fb7ea877 JAVA-5735: Appending a new File to a ZIP file (#13044) 2022-11-22 00:44:18 -07:00
Saajan N e5a62781ce Moved code for BAEL-5752 to new module 2022-11-21 18:06:30 +05:30