Commit Graph

3046 Commits

Author SHA1 Message Date
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
Ssam 5e08af14a1 Include new module 2022-11-20 12:17:56 +00:00
Ssam 3c57c4d566 move article files to new module 2022-11-20 12:15:45 +00:00
Songting Xu 032b8e2d64 [BAEL-5840] Sort a collection of Objects on multiple fields (#12950)
* [BAEL-5840] Sort a collection of Objects on multiple fields

* Fix maven plugin version

* Fix pom again

* Fix again

* Move to core-java-collections-4 module

* Remove unused files

* Test renaming

* Handle NPE

* Use Nonnull annotation

* remove redundant dependency

* remove redundant scope

* Update pom.xml
2022-11-19 08:37:29 +05:30
freelansam 5bfbf38f59 JAVA-15409: Fix formatting of POMs (#12992) 2022-11-18 00:26:06 +05:30
panos-kakos b8b8ed889b [JAVA-13963] Align code with article + clean up (#13013)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-17 01:12:28 +05:30
Kumar Prabhash Anand 748ccaef61 BAEL-5801 - adding iterate list unit test (#12883)
* BAEL-5801 - adding iterate list unit test

* BAEL-5801 - replaced record to class

* BAEL-5801 - added spring data dependency

* moved source file in java17 module

* BAEL-5801 updated pom.xml configurations

* BAEL-5801 moved to correct java17 module

* updated example

* BAEL-5801 - making iterator instance strong typed

* BAEL-5801 - removed class example
2022-11-16 18:14:19 +00:00
Loredana Crusoveanu 1c3569f2f3 Merge pull request #13043 from collaboratewithakash/master
back links fixed
2022-11-16 13:16:59 +02:00
collaboratewithakash 016c0d517a backlink removed 2022-11-16 16:10:04 +05:30
Vartika Nigam eae4d33d9c code for thread creation (#12971)
* code for thread creation

* code refactored

* added code for executor service thread pools

* moved the files to a single module

Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
2022-11-15 21:09:18 -06:00
Loredana Crusoveanu eb131e7f94 Merge pull request #13038 from edizor/master
README
2022-11-15 09:57:23 +02:00
edizor 26471841a8 Update README.md
[skip ci]
2022-11-15 10:06:46 +08:00
Kai Yuan b52f7ef200 [fillEnumInList] Filling a List with All Enum Values in Java (#13005)
* [fillEnumInList] Filling a List with All Enum Values in Java

* [fillEnumInList] change the return type in the util method
2022-11-14 20:03:18 -06:00
edizor 73d56b217b Update README.md
[skip ci]
2022-11-15 10:02:03 +08:00
Kilian Schneider efe6e76d97 basler1337@gmail.com feat add element to array list at specific index (#13025)
* feat add element to array list at specific index

* add unit test for add element at index
2022-11-14 10:48:39 -08:00
Loredana Crusoveanu 984dc79473 Update README.md 2022-11-13 17:58:21 +02:00
panos-kakos ca436ff5e0 [JAVA-13960] Clean up (#12994)
* [JAVA-13960] Clean up

* [JAVA-13960] Rename classes

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-13 17:46:26 +05:30
rehammuzzamil08 fc0c16a3ae BAEL-5670: Remove All Non Numeric Characters but Keep the Decimal Separator in Java String (#12827)
* BAEL-5670: Remove All Non Numeric Characters but Keep the Decimal Separator in Java String

* BAEL-5670: Remove All Non Numeric Characters but Keep the Decimal Separator in Java String

* BAEL-5670: Remove All Non Numeric Characters but Keep the Decimal Separator in Java String
- Move to a new module core-java-string-apis-2

* BAEL-5670: Add README.md file

* BAEL-5670: Add test cases to handle cases where decimal sepator is not a period or dot.

* BAEL-5670: Remove test cases to handle cases where decimal sepator is not a period or dot.

* BAEL-5670: Update ordering of modules in pom.xml
2022-11-13 09:38:48 +05:30
davidmartinezbarua 28f86cb991 Merge pull request #12999 from thibaultfaure/BAEL-5925-finding-max-date-in-object-list
BAEL-5925 Code for the finding max date in object list article
2022-11-12 01:25:11 -03:00
thibault.faure 2e126e794c BAEL-5925 Code for the finding max date in object list article 2022-11-11 18:32:57 +01:00
edizor 3fb428a3c6 Update README.md 2022-11-11 16:09:02 +08:00
Loredana Crusoveanu 13698a3ed3 Merge pull request #12936 from achraftt/BAEL-5791-deleteDiedCode
BAEL-5791: adaptation after creating new module
2022-11-11 10:01:33 +02:00
Loredana Crusoveanu 1b48232d56 Merge pull request #12935 from achraftt/BAEL-5791-adaptation
BAEL-5791: Convert String to Instant (creating new module)
2022-11-11 10:00:03 +02:00
edizor 85ee80bad2 Update README.md
[skip ci]
2022-11-11 09:37:42 +08:00
edizor 1a6bad7f13 Update README.md
[skip ci]
2022-11-11 08:56:17 +08:00
edizor 3b43918cf7 Update README.md
[skip ci]
2022-11-11 08:45:29 +08:00
edizor 96575a8d64 Update README.md
[skip ci]
2022-11-11 08:41:08 +08:00
edizor b87872336d Update README.md
[skip ci]
2022-11-11 08:35:42 +08:00
press0@gmail.com 7d1c17443b revert MapMax 2022-11-08 07:49:28 -06:00
press0@gmail.com 57b666b085 fix logger class ref 2022-11-08 07:32:12 -06:00
press0 3c895d237e Merge branch 'eugenp:master' into master 2022-11-08 07:17:12 -06:00
Gaetano Piazzolla d0c3a7dfd6 BAEL-5790 - Convert java.util.Date to java.sql.Date (#12917)
* BAEL-5790 - Convert java.util.Date to java.sql.Date

* BAEL-5790 - Renamed unit test

* BAEL-5790 | fixed test

* Update core-java-modules/core-java-date-operations-3/src/main/java/com/baeldung/utiltosqldate/UnitToSqlDateUtils.java

Co-authored-by: Brandon Ward <brandon.ward1993@gmail.com>

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: Brandon Ward <brandon.ward1993@gmail.com>

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: Brandon Ward <brandon.ward1993@gmail.com>

* BAEL-5790 | renamed class

* BAEL-5790 | spaces

* BAEL-5790 | renaming class

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* Update core-java-modules/core-java-date-operations-3/src/test/java/com/baeldung/utiltosqldate/UtilToSqlDateUtilsUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* BAEL-5790 - renamed unit test

Co-authored-by: Brandon Ward <brandon.ward1993@gmail.com>
Co-authored-by: KevinGilmore <kpg102@gmail.com>
2022-11-07 10:40:22 -07:00
Loredana Crusoveanu 0a40935b0f Merge pull request #12803 from press0/patch-1
pom.xml - update streamex dependency so MergeMaps compiles on java 17
2022-11-07 16:42:41 +02:00
Loredana Crusoveanu 665046d667 Merge pull request #12978 from collaboratewithakash/master
a few backlinks added
2022-11-07 09:49:22 +02:00
panos-kakos ca8e33e339 [JAVA-13959] Alligned code with article (#12982)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-07 00:03:13 +05:30
davidmartinezbarua 1a4cc86a08 Merge pull request #12967 from thibaultfaure/article/BAEL-5816-check-if-all-runnable-are-done-with-executor-service
BAEL-58616 Code for the Check If All Runnable Are Done article
2022-11-05 13:33:37 -03:00
collaboratewithakash 3716d4d472 Update README.md 2022-11-05 16:24:24 +05:30
panos-kakos e7b46313fb [JAVA-13957] Added example for Timer functionality (#12906)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-05 16:23:30 +05:30
thibault.faure 43ba5e80a4 BAEL-58616 Code for the Check If All Runnable Are Done article 2022-11-05 11:36:41 +01:00
panos-kakos 7313894322 [JAVA-13958] Minor style changes + aligned code with article (#12889)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-05 15:28:01 +05:30
Kai Yuan 0e244ce133 [slicingArrays] Slicing Arrays in Java (#12957) 2022-11-03 20:59:33 -05:00
edizor 3962acdd92 Update README.md
[skip ci]
2022-11-02 21:17:34 +08:00
edizor b447862fa5 Create README.md
[skip ci]
2022-11-02 21:08:28 +08:00
vunamtien 5c281eb016 calculate standard deviation (#12963)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-11-01 08:38:06 -07:00
achraftt 117469a04b BAEL-5791: adapt pom file 2022-10-31 22:41:33 +01:00
Olu 1f1d49bcb1 swapped the order of arguments for assertEquals() (#12956)
* 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()
2022-10-31 14:08:59 -07:00
Kai Yuan 146ffa71d0 [URI-Creation] Difference Between URI.create() and new URI() (#12937)
* [URI-Creation] Difference Between URI.create() and new URI()

* [URI-Creation] split test methods for invalid & valid inputs
2022-10-29 21:00:33 -05:00
Arya aaecc586b2 Added the test. (#12947) 2022-10-28 09:20:01 -07:00
Loredana Crusoveanu f6f67ff8cc BAEL-5888-v2 2022-10-28 10:31:33 +03:00
Olu 7ab9be3c1f A Guide to LinkedHashSet in Java (#12932)
* Creating a Deep vs Shallow Copy of an Object in Java

* completed tests for LinkedHashSet

* update

* updated PR
2022-10-27 22:58:17 -07:00
achraftt 2c8a1ae6b9 BAEL-5791: adaptation after creating new module 2022-10-27 00:33:38 +02:00
achraftt 03a4639341 BAEL-5791: Convert String to Instant (creating new module) 2022-10-27 00:12:35 +02:00
edizor 99a4d3fa68 Update README.md 2022-10-26 22:39:48 +08:00
edizor 32fdbae8a1 Update README.md 2022-10-26 22:34:34 +08:00
edizor ec23a5ce81 Update README.md 2022-10-26 22:31:27 +08:00
edizor b4ef4a40b0 Update README.md 2022-10-26 22:28:01 +08:00
edizor 01a44a7dbf Update README.md 2022-10-26 22:24:42 +08:00
Ulisses Lima 8ad8a38682 BAEL-5678 - Creating Random Numbers With No Duplicates in Java (#12698)
* BAEL-5678 - Creating Random Numbers With No Duplicates in Java

Ready for review.

* BAEL-5678 - review

* using `isEmpty()` for `hasNext()`;
* using `assertEquals` instead of `assertTrue`;
2022-10-26 08:44:35 +02:00
Kai Yuan 2dd61b7d54 [strToStrArray] Convert String to string array in Java (#12899)
* [strToStrArray] Convert String to string array in Java

* [strToStrArray] add one more example
2022-10-24 20:20:37 -05:00
Kai Yuan d1067b341f [strToChar] Convert String to char in Java (#12893) 2022-10-23 09:50:15 -05:00
Shaun Phillips 63bdc428b9 BAEL-5681 Add colorful logging (#12794) 2022-10-20 18:31:20 +01:00
Ulisses Lima 2635faa934 bael-5754 - quick fix
* adapting code to the article
2022-10-20 14:03:23 -03:00
Kai Yuan b8481873e9 [Capitalize_1st] Capitalize the First Letter of a String in Java (#12885) 2022-10-19 20:31:27 -05:00
panos-kakos bf1f0aa3da [JAVA-13957] (#12870)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-10-20 00:25:46 +05:30
panos-kakos eb17d0e2ed [JAVA-13966] Upgraded h2 database to 2.1.214 + clean up (#12711)
* [JAVA-13966] Upgraded h2 database to 2.1.214

* [JAVA-13966] fixed tests for libraries-apache-commons

* [JAVA-13966] fixed tests

* [JAVA-13966] fixed tests

* [JAVA-13966] fixed tests JAVA-JPA MODULE

* [JAVA-13966] Made ninja submodule part of web-modules(parent)

* [JAVA-13966] Fixed naming convention for pmd

* [JAVA-13966] Moved tests of ninja-module to ManualTest category

* [JAVA-13966] Fix tests

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-10-20 00:17:05 +05:30
kpentaris 5bc5a0f717 Add application file for BAEL-4038 (#12851) 2022-10-19 17:23:17 +02:00
Loredana Crusoveanu 0da831a483 Merge pull request #12873 from edizor/master
Update README.md
2022-10-19 17:01:21 +03:00
ACHRAF TAITAI 7b44b2759f BAEL-5791: Convert String to Instant (#12876) 2022-10-16 20:09:54 +02:00
edizor c440c1e41f Update README.md 2022-10-16 11:38:21 +08:00
edizor d71fb7073e Update README.md
[skip ci]
2022-10-16 11:37:49 +08:00
edizor 869acf1646 Update README.md
[skip ci]
2022-10-16 11:32:23 +08:00
edizor 064ba95c28 Update README.md
[skip ci]
2022-10-16 11:25:16 +08:00
edizor 75419f0ddb Update README.md 2022-10-16 11:17:34 +08:00
edizor 01b80eddcc Update README.md
added link back to the article: https://www.baeldung.com/java-port-scanning
2022-10-16 11:12:39 +08:00
edizor 34cd6b4434 Create README.md 2022-10-16 11:00:58 +08:00
edizor 09bac30288 Update README.md 2022-10-16 10:47:33 +08:00
Ritu Priya d39aa6b1c6 BAEL-5752: Check for valid URL in java (#12836) 2022-10-13 09:47:06 +05:30
Amit Kumar 63058bc24c Difference Between Java Enumeration and Iterator by amitkumar88265@gmail.com (#12844)
* added Enumertion and Iterator code example

* formatted the code

* formatted the code

* move code examples to other modules

* corrected the pkg name

* corrected the pkg name

* fixed compile time issue

Co-authored-by: Amit Kumatr <amit.kumar@fyndna.com>
2022-10-13 08:45:13 +05:30
mdabrowski-eu c4052100a0 BAEL-5745 Mocking InputStream (#12845) 2022-10-11 10:14:08 +02:00
Kai Yuan 6381f2b8ba [collect-into-treeSet] Using Streams to Collect into a TreeSet (#12834)
* [collect-into-treeSet] Using Streams to Collect into a TreeSet

* [collect-into-treeSet] move to core-java-collections-set-2
2022-10-10 19:58:20 -05:00
Vali Tuguran 8aae0346cc BAEL-5733 Remove readme entry. (#12848)
* Add deep vs shallow copy Java.

* Refactor sheep names.

* BAEL-5733 Add infinity in java test.

* Removed test article code.

* BAEL-5733 Refactor unit test classname.

* BAEL-5733 Remove readme entry.

* BAEL-5733 Remove readme entry.
2022-10-10 13:09:48 -07:00
Vali Tuguran 25a1270d7c BAEL-5733 Infinity in Java (#12843)
* Add deep vs shallow copy Java.

* Refactor sheep names.

* BAEL-5733 Add infinity in java test.

* Removed test article code.

* BAEL-5733 Refactor unit test classname.
2022-10-09 16:57:44 -07:00
press0@gmail.com 5eab831bb5 . 2022-10-08 22:30:21 -05:00
press0@gmail.com 1ad0c04839 simplify with comparingByValue() 2022-10-08 22:13:18 -05:00
press0@gmail.com 027cbaf9f9 simplify with comparingByValue() 2022-10-08 21:41:57 -05:00
tudormarc ae96297bc2 BAEL-5675 - variable initialization on declaration vs on constructor (#12800)
* BAEL-5675 - variable initialization on declaration vs on constructor

* moved classes under a different project
2022-10-07 07:57:45 -07:00
Loredana Crusoveanu fde21ca87d Merge pull request #12768 from panos-kakos/JAVA-13956
[JAVA-13956] Update/Align code with article
2022-10-07 12:32:14 +03:00
panagiotiskakos 8623a48204 [JAVA-13956] Moved module to default-jdk9-and-above 2022-10-06 18:13:29 +03:00
ACHRAF TAITAI 78c64f6815 BAEL-5714 : Port Scanning with Java (edit after final review) (#12824) 2022-10-06 14:55:35 +02:00
Kai Yuan a474a8236c [init-boolean-array] Initializing a Boolean Array in Java (#12813) 2022-10-05 22:07:04 -05:00
Asjad J 33ccecc949 Updated README.md
added link back to the article: https://www.baeldung.com/java-list-to-text-file
2022-10-05 15:31:31 +05:00
Asjad J 12cbf8165e Updated README.md
added link back to the article: https://www.baeldung.com/java-set-vs-list
2022-10-05 15:24:57 +05:00
Asjad J 9ea69dcb61 Updated README.md
added link back to the article: https://www.baeldung.com/java-list-comma-separated-string
2022-10-05 15:20:48 +05:00
Mahn00rMalik 790e53837d BAEL-5767: Writing an ArrayList of Strings into a Text File (#12783)
* Deep vs Shallow copy of an object in java

* update indentaions

* Create a BMI Caclualtor in Java

* Create a BMI Caclualtor in Java

* Delete unused packages

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* Deleting files from core-java-io

* BAEL-5767: Writing an ArrayList of Strings into a Text File

* Removed files from core-java-11-2

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File
2022-10-04 14:03:59 +02:00
Satyarth Shankar a17886f406 list vs set unit test (#12807)
* BAEL-5751 test commit for checkin builds

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

* BAEL-5751 moved code to a different module

* BAEL-5751 using assertArrayEquals

* BAEL-5751 new line at the end of file
2022-10-02 23:48:53 -07:00
Loredana Crusoveanu da104783ec Merge pull request #12796 from Asjad-J/master
Updated README.mds
2022-10-02 19:34:01 +03:00
press0 17095d09db Update pom.xml 2022-10-01 17:49:27 -05:00
Satyarth Shankar efa5e9fbeb list and set difference (#12787)
* BAEL-5751 test commit for checkin builds

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

* BAEL-5751 moved code to a different module
2022-10-01 00:19:41 -07:00
Asjad J 0138aae9a1 Merge branch 'eugenp:master' into master 2022-09-30 22:39:40 +05:00
Asjad J e9eac5a7de Updated README.md
added link back to the article: https://www.baeldung.com/java-validate-uuid-string
2022-09-30 19:37:22 +05:00
Asjad J 2fe4e44b03 Updated README.md
added link back to the article: https://www.baeldung.com/java-scanner-character-input
2022-09-30 19:33:31 +05:00
ACHRAF TAITAI e0272416f8 Port Scanning with Java (#12767) 2022-09-30 14:50:21 +02:00
Asjad J df4288aa25 Updated README.md
added link back to the article: https://www.baeldung.com/java-body-mass-index-calculator
2022-09-30 16:56:23 +05:00
Asjad J 5d059c0d34 Updated README.md
added link back to the article: https://www.baeldung.com/java-string-concatenation
2022-09-30 16:53:15 +05:00
Asjad J dec93d7299 Updated README.md
added link back to the article: https://www.baeldung.com/java-trifunction
2022-09-30 16:46:58 +05:00
Asjad J d3380e2afc Updated README.md
added link back to the article: https://www.baeldung.com/java-filename-full-path
2022-09-30 16:40:50 +05:00
Asjad J b35be2b56e Updated README.md
added link back to the article: https://www.baeldung.com/java-unique-random-numbers
2022-09-30 16:33:34 +05:00
Asjad J 3277d25002 Updated README.md
added link back to the article: https://www.baeldung.com/java-date-unix-timestamp
2022-09-30 16:31:39 +05:00
Bogdan Cardoş e8168990c5 BAEL-5754 Convert a List of String to a comma-separated String (#12737)
* BAEL-5617 Handle classes with the same name in Java

code samples

* BAEL-5617 Handle classes with the same name in Java

update project module

* BAEL-5754 Convert a List of String to a comma-separated String

code samples

* BAEL-5754 update unit test class name

* BAEL-5754 update unit test methods naming

* BAEL-5754 update tests order so to reflect the article
2022-09-30 10:08:08 +05:30
panagiotiskakos 0ad9dd0fea [JAVA-13956] Update/Align code with article 2022-09-26 07:00:43 +03:00
Loredana Crusoveanu 0bc9d72e67 Delete ListOfHashMapsUnitTest.java 2022-09-24 18:28:58 +03:00
Kumar Prabhash Anand c85e6ff506 BAEL-5765 - Updating scan a char unit tests (#12751)
* BAEL-5765 Adding scan a char unit tests

* BAEL-5765 updated class name as per the convention

* BAEL-5765 updated test cases naming strategy

* BAEL-5765 updated variable name
2022-09-23 09:45:58 -07:00
AndreiMandris d5ad2e0ed8 BAEL-5692 Validate UUID String in Java (#12635)
* BAEL-5692 Validate UUID String in Java

* cleaned up the Main method

* added unit test for uuid validation

* renamed unit test method name

* formatted unit test

* removed unneeded file

* replaced gradle by maven

* removed gradle project

* moved project

* added readme file

* segregated unit tests by validator type.

* inlined the validating logic inside the unit tests

* moved the UUIDValidatorTest.java to core-java-uuid module

* renamed test

Co-authored-by: andrei-mandris <andrei.mandris.ext@deliveryhero.com>
2022-09-23 09:44:52 -07:00
collaboratewithakash 8e673b2ddb Update README.md 2022-09-23 16:48:37 +05:30
collaboratewithakash a9b07fe7c6 Update README.md 2022-09-23 16:39:30 +05:30
collaboratewithakash b99ad6de82 Update README.md 2022-09-23 16:32:40 +05:30
collaboratewithakash c6c747081d Update README.md 2022-09-23 16:09:05 +05:30
collaboratewithakash 9d85dbf6b6 Update README.md 2022-09-23 16:04:39 +05:30
collaboratewithakash eb56a08cb6 Update README.md 2022-09-23 15:49:46 +05:30
collaboratewithakash ec1fa40010 Update README.md 2022-09-23 15:46:04 +05:30
collaboratewithakash 87c7c14924 Update README.md 2022-09-23 15:28:12 +05:30
collaboratewithakash ea49f2c250 Update README.md 2022-09-23 15:22:58 +05:30
collaboratewithakash 4c54a43bd0 Update README.md 2022-09-23 15:20:27 +05:30
collaboratewithakash 5a944c0bfb Update README.md 2022-09-23 15:18:11 +05:30
collaboratewithakash a8c7136389 Update README.md 2022-09-23 15:06:59 +05:30
collaboratewithakash 316713e3bc Update README.md 2022-09-23 15:06:07 +05:30
collaboratewithakash 5ef657d261 Update README.md 2022-09-23 15:05:09 +05:30
collaboratewithakash b173787fe2 Update README.md 2022-09-23 15:02:06 +05:30
collaboratewithakash fd08f00ed1 Update README.md 2022-09-23 15:01:12 +05:30
collaboratewithakash 2e4e368056 Update README.md 2022-09-23 15:00:33 +05:30
collaboratewithakash 288b01aa65 Update README.md 2022-09-23 14:30:48 +05:30
collaboratewithakash e1a612b8c7 Update README.md 2022-09-23 14:29:51 +05:30
Mahn00rMalik 29d9ddb3b1 BAEL-5708: Create a BMI Calculator in Java (#12695)
* Deep vs Shallow copy of an object in java

* update indentaions

* Create a BMI Caclualtor in Java

* Create a BMI Caclualtor in Java

* Delete unused packages

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5708: Create a BMI Calculator in Java
2022-09-21 09:46:09 +05:30
Kumar Prabhash Anand a8f010e50e BAEL-5765 - Adding scan a char unit tests (#12741)
* BAEL-5765 Adding scan a char unit tests

* BAEL-5765 updated class name as per the convention

* BAEL-5765 updated test cases naming strategy
2022-09-20 12:52:25 -03:00
alemoles 062d7026cd BAEL-5583 String concatenation: concat() vs + operator (#12719)
* BAEL-5583 String concatenation: concat() vs + operator (#10)

* BAEL-5583 String concatenation: concat() vs + operator
2022-09-19 21:14:43 -05:00
davidmartinezbarua 74dcaa0935 Merge pull request #12738 from thibaultfaure/article/BAEL-5725-Trifunction-interface
BAEL-5725 code for the TriFunction interface article
2022-09-18 15:26:32 -03:00
thibault.faure ed608d1ede BAEL-5725 code for the TriFunction interface article 2022-09-18 12:01:28 +02:00
Loredana Crusoveanu 6b6a9f1556 Merge pull request #12734 from Asjad-J/master
Updated README.mds
2022-09-18 10:29:01 +03:00
Kai Yuan a7fc8039ff [extractFilename] Getting the Filename From a String Containing an Absolute File Path (#12728) 2022-09-17 10:00:11 -05:00
Asjad J d61a319bb5 Updated README.md
added link back to the article: https://www.baeldung.com/java-class-vs-classloader-getresource
2022-09-17 09:23:55 +05:00
Asjad J a1ed83d554 Updated README.md
added link back to the article: https://www.baeldung.com/java-fixed-size-queue
2022-09-17 09:20:45 +05:00
Asjad J e8ed01721d Updated README.md
added link back to the article: https://www.baeldung.com/java-relative-path-absolute
2022-09-17 08:53:42 +05:00
Asjad J e555a75dd2 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-fields-gc
2022-09-17 08:36:04 +05:00
Asjad J 471453d301 Updated README.md
added link back to the article: https://www.baeldung.com/java-md5-checksum-file
2022-09-17 08:30:26 +05:00
Asjad J cf2f7d3471 Updated README.md
added link back to the article: https://www.baeldung.com/roots-quadratic-equation/
2022-09-17 08:27:21 +05:00
Asjad J 7adda7e067 Updated README.md
added link back to the article: https://www.baeldung.com/java-classes-same-name
2022-09-17 05:56:27 +05:00
Ulisses Lima f3ef5a257f BAEL-5666 - Create Date from Unix timestamp in Java (#12650)
* moving SpringBootPersistenceApplication class to its own package

* from com.baeldung to com.baeldung.logging to prevent it from loading
contexts from other applications.

* moving SpringBootPersistenceApplication class to its own package

* from com.baeldung to com.baeldung.logging to prevent it from loading
contexts from other applications.

* Spring Data MongoDB - Configure Connection

Ready for revision.

* fixed tests to reflect article changes

* BAEL-5657

* reverting BAEL-5657

* reverting BAEL-5657

* ready for review

* removing bael-5366

* removing bael-5366

* removing extra blank space

* bael-5666

editor review

* editor review

* long literals
* junit 5
* private constructor for utils

* junit5 assertThat
2022-09-16 22:31:27 +02:00
victorsempere 171e4bd7c8 BAEL-5699 (#12674)
* BAEL-5699

First draft of the article example

* BAEL-5699

Removed unused class FifoFixedSizeQueueRemoveOldestInOffer.java
Removed unused UnitTest for the removed class
Added some tests to check count attribute
2022-09-15 20:04:23 +01:00
apeterlic f8ea63de51 Add Difference Between Class.getResource() and ClassLoader.getResource() (#12669)
* Add Difference Between Class.getResource() and ClassLoader.getResource()

* Fix - replace System.out with Logger

* Fix - move code to a different module
2022-09-15 19:57:43 +01:00
Mateusz Szablak 7e63494eb4 BAEL-5656 Constructing a Relative Path in Java from Two Absolute Paths or URLs (#12726) 2022-09-14 10:36:21 +05:30
Azhwani b836dce329 move https://www.baeldung.com/java-hashmap-inside-list code to core-java-collections-list-4 module (#12671) 2022-09-14 00:52:30 +02:00
freelansam dc1815c10c JAVA-14673 - Fix formatting of POMs (#12722)
* JAVA-14673 - Fix formatting of POMs

* cleanup
2022-09-13 21:22:49 +05:30
Timothy Kruger d07ff5878c BAEL-5614 Remove Last Char from String Builder (#12577)
* BAEL-5614 Remove Last Char from String Builder
- Added initial code with main
- Added initial tests for each method going to be written on

* Update RemoveLastChar.java

* Update and rename RemoveLastCharTest.java to RemoveLastCharUnitTest.java

Co-authored-by: Grzegorz Piwowarek <gpiwowarek@gmail.com>
2022-09-12 12:49:27 +02:00
panos-kakos ac619f1f4b [JAVA-14461] Improvement/ making code more declarative (#12710)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-09-11 11:59:03 +05:30
Kai Yuan 1b334f6a2d Positive or negative (#12706)
* Check if a number is positive or negative in Java

* reformat single line if/else statements

* Check if a number is positive or negative in Java

* [positiveOrNegative] using compareTo() instead of == to compare float numbers

* [positiveOrNegative] re-org imports
2022-09-10 10:06:11 -05:00
Harry9656 cbcf5d4050 BAEL-5712: Improvement in Listing files under directory (#12643)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-09-08 21:48:29 +01:00
Loredana Crusoveanu b8bab5bcbe Merge pull request #12556 from GeoffChurch/insertInStream
Improve `insertInStream`
2022-09-08 10:35:33 +03:00
davidmartinezbarua c1a759900e Merge pull request #12678 from thibaultfaure/article/BAEL-5709-find-roots-of-a-quadratic-equation
BAEL-5709 code for the Finding the roots of a quadratic equation article
2022-09-05 21:03:35 -03:00
thibault.faure faaebaddbe BAEL-5709 code for the Finding the roots of a quadratic equation article 2022-09-05 22:07:07 +02:00
Eugene Kovko 06fc7ae257 BAEL-4795: Static garbage collected fields (#12693)
* BAEL-4795: Static garbage collected fields

* BAEL-4795: Fix readAllBytes()
2022-09-05 08:45:31 -07:00
Asjad J 4346ab2887 Updated README.md
updated the link to article
2022-09-03 21:47:42 +05:00
Azhwani 44f273b735 BAEL-4623: Add a new section for Scanner article (#12453) 2022-09-03 12:51:25 +02:00
Asjad J 795cbd3325 Updated README.md
added link back to the article: https://www.baeldung.com/java-integer-division-float-result
2022-09-02 09:00:15 +05:00
Asjad J 1215215c51 Updated README.md
added link back to the article: https://www.baeldung.com/java-compare-characters
2022-09-02 08:56:20 +05:00
Asjad J 62abc51405 Updated README.md
added link back to the article: https://www.baeldung.com/java-remove-last-character-stringbuilder
2022-09-02 08:54:02 +05:00
Asjad J 1ab14889e2 Updated README.md
added link back to the article: https://www.baeldung.com/java-list-factors-integer
2022-09-02 08:50:53 +05:00
Bogdan Cardoş c3204d4a2e BAEL-5617 Handle classes with the same name in Java (#12676)
* BAEL-5617 Handle classes with the same name in Java

code samples

* BAEL-5617 Handle classes with the same name in Java

update project module
2022-09-01 07:33:41 -07:00
Ulisses Lima 8edd76ccb0 "Vendredi" is Friday in french, not Wednesday 2022-08-30 11:02:12 -03:00
vunamtien 72daf77666 BAEL-5615-gen-md5-checksum-of-file (#12668)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-08-30 15:51:01 +02:00
Kai Yuan 78b7c6dcf8 Make Division of Two Integers Result in a Float (#12658) 2022-08-29 19:08:50 -05:00
Azhwani 15581547df BAEL-5390: Compare Characters in Java (#12633)
* BAEL-5390: Compare Characters in Java

* create new module core-java-string-operations-5
2022-08-28 18:53:06 +02:00
Kai Yuan d8599a4c35 Remove the last character of a Java StringBuilder (#12653) 2022-08-27 11:07:36 -05:00
Kai Yuan 0ea458117e List all factors of a number in Java (#12646)
* List all factors of a number in Java

* format the map code in the test
2022-08-26 20:26:38 -05:00
Haroon Khan eb24cfa8be [JAVA-13010] Convert file tests to manual tests (#12561) 2022-08-26 14:17:08 +05:30
Asjad J 2da3b9df1d Updated README.md
added link back to the article: https://www.baeldung.com/java-armstrong-numbers
2022-08-25 21:45:03 +05:00
Asjad J c086d40875 Updated README.md
added link back to the article: https://www.baeldung.com/java-arrays-aslist-vs-list-of
2022-08-25 21:35:11 +05:00
Asjad J 6a2c013bf1 Updated README.md
added link back to the article: https://www.baeldung.com/locked-ownable-synchronizers
2022-08-25 21:31:46 +05:00
Asjad J 46b3bde188 Updated README.md
added link back to the article: https://www.baeldung.com/java-toggle-boolean
2022-08-25 17:04:21 +05:00
Asjad J 8bc901c7d1 Updated README.md
added link back to the article: https://www.baeldung.com/java-check-number-positive-negative
2022-08-25 16:59:44 +05:00
Asjad J 0a0edd8569 Updated README.md
added link back to the article: https://www.baeldung.com/java-tostring-valueof
2022-08-25 16:23:45 +05:00
Kai Yuan 18d1cb40dc Armstrong Number in Java (#12637) 2022-08-24 20:40:26 -05:00
kpentaris 876d78b188 [BAEL-4500] Add locked ownable synchronizers example code (#12608)
* Add locked ownable synchronizers example code

* refactor application snippet
2022-08-24 15:47:46 +02:00
Harry9656 77671ade4b JAVA-5683: Difference Between List.of and Arrays.asList (#12564)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-08-23 22:22:43 +01:00
Kai Yuan a20006b451 toggle boolean (#12618) 2022-08-21 11:43:45 -05:00
Kai Yuan 842a71ad92 Check if a number is positive or negative in Java (#12604)
* Check if a number is positive or negative in Java

* reformat single line if/else statements

* Check if a number is positive or negative in Java
2022-08-20 21:46:14 -05:00
Dhawal Kapil b38eb760d1 JAVA-13941 Incremented version of esapi (#12621) 2022-08-19 23:09:28 +05:30
panos-kakos 520c7d7083 [JAVA-13944] Upgrade lombok dependency for main pom.xml + child modules (#12617)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:13:42 +05:30
panos-kakos 99adc6e67e Java 13945 (#12611)
* [JAVA-13945] Upgrade guava version to 31.1-jre

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] revert changes

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:06:35 +05:30
freelansam 23f33d32fe JAVA-13826: Align module names, folder names and artifact id (#12601) 2022-08-19 12:04:58 +05:30
Loredana Crusoveanu fad5f79b8c Merge pull request #12610 from Asjad-J/master
Updated README.md
2022-08-17 20:30:15 +03:00
sdhiray7 087a50b2e7 [BAEL-5661] Integer.toString(int i) vs String.valueOf(int i) (#12606)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments

* Create unit test file

* Remove unnecessary files

* Update package name
2022-08-17 17:34:12 +02:00
Asjad J aba86e1819 Updated README.md
added link back to the article: https://www.baeldung.com/java-streams-multiple-filters-vs-condition
2022-08-17 16:37:28 +05:00
Asjad J 75d7bb2f55 Updated README.md
added link back to the article: https://www.baeldung.com/java-string-formatting-named-placeholders
2022-08-17 16:27:03 +05:00
davidmartinezbarua ff63982af2 Merge pull request #12590 from etrandafir93/features/BAEL-5674-streams-multiple-vs-single-filters
BAEL-5674: added code examples for the article
2022-08-16 15:55:52 -03:00
anuragkumawat e96af43f40 JAVA-12628 Rename CountdownLatchResetExampleUnitTest (#12602) 2022-08-16 22:14:49 +05:30
Kai Yuan 8ce82953c5 Named Placeholders in String Formatting (#12576)
* Named Placeholders in String Formatting

* assert notEqualTo
2022-08-15 19:48:15 -05:00
sdhiray7 06ac43bc9e [BAEL-5661] Integer.toString vs String.valueOf (#12591)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments

* Create unit test file

* Remove unnecessary files
2022-08-14 20:23:47 +02:00
emanueltrandafir1993 536866c40b BAEL-5674: added code examples for the article 2022-08-13 18:44:03 +02:00
Asjad J f94832fc6a Updated README.md
added link back to the article: https://www.baeldung.com/java-arraylist-replace-at-index
2022-08-10 09:37:05 +05:00
Asjad J 0bd6992a8a Updated README.md
added link back to the article: https://www.baeldung.com/java-aslist-vs-singletonlist
2022-08-10 09:25:46 +05:00
Asjad J 659cfd8a27 Updated README.md
added link back to the article: https://www.baeldung.com/java-interval-contains-integer
2022-08-10 09:23:50 +05:00
Asjad J 799fa1ade9 Updated README.md
added link back to the article: https://www.baeldung.com/java-get-current-stack-trace
2022-08-10 09:21:59 +05:00
Asjad J 835a3457ba Updated README.md
added link back to the article: https://www.baeldung.com/java-volatile-vs-atomic
2022-08-10 09:14:15 +05:00
Asjad J f4d37de96b Updated README.md
added link back to the article: https://www.baeldung.com/java-multiple-keys-map
2022-08-10 08:57:37 +05:00
Asjad J c1c875b5b1 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-instance-initializer-blocks
2022-08-10 08:55:16 +05:00
Asjad J 989446fd3b Updated README.md
added link back to the article: https://www.baeldung.com/java-filter-stream-unique-element
2022-08-10 08:52:55 +05:00
Dhawal Kapil b50060aea4 Task/java 13772 (#12579)
* JAVA-13772 Updated the link of PDF to a valid one

* JAVA-13772 Updated File url and checksum
2022-08-09 22:19:56 +05:30
Keerthi cdb19ff6d5 JAVA-12045 : move java concurrency ebook content code to common module (#12559)
* JAVA-12045 : move java concurrency ebook content code to common module

* JAVA-12045: addressed the review comments .. renamed package names and placed core-java-concurrency-simple module in pom.xml

* JAVA-12045: removed duplicate module after renaming java-simple-module to core-java-simple-module
2022-08-08 18:56:55 +05:30
Dhawal Kapil 2db5fcea1e JAVA-13416 Converting to *LiveTest as it makes live call to httpbin URLs (#12573) 2022-08-06 23:56:44 +05:30
hesamghiasi ba99476330 fixing time ago unit tests (#12560)
* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone

* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone
correcting some formattings
adding comments in code to clarify adding of getCurrentTime methods

* reverting changes to ZuulConfig
2022-08-06 19:08:59 +05:30
Kai Yuan 8ec8c01a67 Arrays.asList() vs Collections.singletonList() (#12552) 2022-08-03 21:38:13 -05:00
sdhiray7 a6ef4b67d1 BAEL-5608 - Get current stack trace java (#12533)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments
2022-08-02 19:36:48 -05:00
Eugene Kovko 614795051e BAEL-5682 - Atomic vs Volatile (#12528)
Co-authored-by: eugene.kovko <eugene.kovko@tensquaregames.com>
2022-08-01 20:16:24 -05:00
Geoffrey Churchill 8a88b469e0 Remove old method 2022-07-31 16:26:44 -04:00
Geoffrey Churchill 5a1208f029 Improve `insertInStream`
New version works with infinite streams and has constant space/time complexity.
2022-07-31 14:25:22 -04:00
Loredana Crusoveanu 8db0d7b277 Merge pull request #12548 from Asjad-J/master
Updated links titles
2022-07-31 15:27:12 +03:00
Matei Cernăianu 858e158680 BAEL-5651: How to check if an integer is in a given range? (#12470)
* BAEL-5651: How to check if an integer is in a given range?

* BAEL-5651: How to check if an integer is in a given range?
2022-07-30 19:18:52 -04:00
ACHRAF TAITAI d0ba47e75d BAEL-5643 : Replace at Specific Index in Java ArrayList (#12539) 2022-07-30 14:22:59 +02:00
lalitrajput72 ef758acef0 [BAEL-5622] static vs instance initializer block (#12271)
* Deep copy vs Shallow copy Code commit

* Static and instance block

* Deep copy branch chanaged from master to other

* static vs instance block

* Update InstanceBlockExample.java

* Update StaticBlockExample.java

Co-authored-by: Lalit Rajput <lalit.rajput@globallogic.com>
Co-authored-by: paritoshsunny <sams.sunny.16@gmail.com>
2022-07-30 12:39:02 +02:00
Asjad J be5e772318 Updated README.md
Updated link title in README from 'Sealed Classes and Interfaces in Java 17' to 'Sealed Classes and Interfaces in Java'
2022-07-30 06:34:42 +05:00
Asjad J 463a4aeee9 Merge branch 'eugenp:master' into master 2022-07-28 23:22:56 +05:00
Asjad J b358b17bc0 Updated README.md
added link back to the articles: https://www.baeldung.com/java-string-remove-whitespace
2022-07-28 23:15:33 +05:00
davidmartinezbarua c0d5df745e Merge pull request #12505 from thibaultfaure/articles/BAEL-5663-filter-java-stream-to-only-one-element
BAEL-5663 code for the filter java stream to only one element article
2022-07-28 14:44:35 -03:00
Avin Buricha cf4225a9ea Moved article code to new module (#12423) 2022-07-27 16:31:18 +02:00
Graham Cox d083a20aa9 BAEL-5686: Implementing a Map with Multiple Keys (#12531) 2022-07-26 21:11:45 +02:00
thibault.faure 2c901e1d67 BAEL-5663 code for the filter java stream to only one element article 2022-07-25 23:26:17 +02:00
Kai Yuan 6b8313682e BAEL-5693 rm whitespace from a string (#12515) 2022-07-21 21:58:46 -05:00
anuragkumawat 662f3c4f3e JAVA-13328 Update Convert Byte Size Into a Human-Readable Format in Java 2022-07-16 14:28:46 +05:30
freelansam d7c38b05d6 Merge branch 'master' into JAVA-13136 2022-07-15 10:01:48 +05:30
sampadawagde 2b5179baba JAVA-13136: Fix formatting of POMs 2022-07-15 09:59:54 +05:30
Haroon Khan 8bf83f0fe6 [JAVA-13290] Update record name 2022-07-14 10:50:07 +01:00
Asjad J 5dd6471390 Updated README.md
added link back to the article: https://www.baeldung.com/java-truncating-strings
2022-07-14 08:41:09 +05:00
Asjad J 7bd70abf86 Updated README.md
added link back to the article: https://www.baeldung.com/java-wildcard-imports
2022-07-14 08:32:27 +05:00
Asjad J 38ab64081a Updated README.md
added link back to the article: https://www.baeldung.com/java-full-path-of-jar-from-class
2022-07-14 08:28:02 +05:00
Asjad J b4859d7778 Updated README.md
added link back to the article: https://www.baeldung.com/java-clear-stringbuilder-stringbuffer
2022-07-14 08:23:36 +05:00
Asjad J 263803754a Updated README.md
added link back to the article: https://www.baeldung.com/jar-windows-executables
2022-07-14 08:17:00 +05:00
Asjad J 24ace64b2e Updated README.md
added link back to the article: https://www.baeldung.com/java-record-vs-lombok
2022-07-14 08:13:33 +05:00
kwoyke ce2ecef1e7 Merge pull request #12472 from jsgrah-spring/master
close #12095
2022-07-12 10:17:01 +02:00
kwoyke 6f6612608d Merge pull request #12471 from anuragkumawat/JAVA-13089
JAVA-13089 Verify Java Base64 Encoding and Decoding article
2022-07-12 09:23:43 +02:00
Abdul Wahab c0bba594a2 BAEL-5616: Added java wildcard imports example (#12448)
Co-authored-by: Abdul Wahab <abdul.wahab@monese.com>
2022-07-11 09:12:14 +05:30
Kai Yuan b372864029 BAEL-5650 jar file path (#12463)
* BAEL-5650 jar file path

* move to jar module
2022-07-10 21:09:49 -05:00
thibaultfaure 4c1e18b15e BAEL-5610 Code for the clearing stringbuilder or stringbuffer article (#12378)
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
2022-07-10 13:22:08 +01:00
anuragkumawat 138c224907 JAVA-13089 Verify Java Base64 Encoding and Decoding article 2022-07-09 15:07:47 +05:30
davidmartinezbarua 2823129540 Merge pull request #12413 from opokharel/master
[BAEL-5421] by @opokharel
2022-07-08 15:03:49 -03:00
davidmartinezbarua 21ef5131d1 Merge pull request #12444 from etrandafir93/features/BAEL-5639-lombok_vs_records
BAEL-5639: added code samples for the article
2022-07-08 14:54:16 -03:00
davidmartinezbarua 39296fbf57 Merge pull request #12381 from thibaultfaure/improvements/BAEL-5180-sealed-classes
BAEL-5180 improvement on the article about sealed class
2022-07-08 14:34:02 -03:00
bipster b14f9aabac Merge pull request #12380 from azhwani/BAEL-5550
BAEL-5550: Truncate a string
2022-07-06 15:59:22 -04:00
Azhwani d46370d88f BAEL-5550: Trim a string based on the string length 2022-07-06 18:56:35 +02:00
jogra 535abc8f7a close #12095 2022-07-05 13:26:34 +00:00
Asjad J f94ede6fe1 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-methods-use-cases
2022-07-05 15:52:08 +05:00
Asjad J deb37981aa Updated README.md
added link back to the article: https://www.baeldung.com/java-split-stream
2022-07-05 15:39:47 +05:00
Asjad J 9b75a64d9f Updated README.md
added link back to article: https://www.baeldung.com/java-inputstream-to-base64-string
2022-07-05 15:36:52 +05:00
Krzysiek 33cf52f917 JAVA-12865: Update readme 2022-07-05 09:13:52 +02:00
Daniel Strmecki 49d005b63e Feature/bael 5609 static method (#12370)
* BAEL-5609: init

* BAEL-5609: update examples

* BAEL-5609: refactor

* BAEL-5609: delete car example
2022-07-04 19:11:58 +01:00
kwoyke 5b66626806 Merge pull request #12439 from anuragkumawat/JAVA-12626
JAVA-12626 Fix AccountUnitTest in core-java-concurrency-advanced-3 module
2022-07-04 15:17:50 +02:00
kwoyke 217326c56e Merge pull request #12412 from anuragkumawat/JAVA-12080
JAVA-12080 Update When to Use a Parallel Stream in Java
2022-07-04 15:15:56 +02:00
anuragkumawat 2ff0071a65 JAVA-12080 Create and delete test files dynamically 2022-07-03 20:44:56 +05:30
emanueltrandafir1993 c3d805e5c0 BAEL-5639: added code samples for the article 2022-07-02 17:55:17 +02:00
anuragkumawat e1f020527a JAVA-12626 Fix AccountUnitTest in core-java-concurrency-advanced-3 module 2022-07-01 21:25:41 +05:30
thibault.faure 4298849d9e BAEL-5180 improvement on the article about sealed class
move code to java 17 and use getPermittedSubClasses instead of permittedSubClasses
2022-06-30 23:12:51 +02:00
Loredana Crusoveanu c534201ece Merge pull request #12427 from tudormarc/tudormarc-even-odd-negative-numbers
BAEL-5560 - small fix for negative numbers
2022-06-30 13:26:34 +03:00
mdabrowski-eu 40e42f8d45 BAEL-5557 Split a stream into parts (#12238)
* BAEL-5557 Split a stream into parts

* BAEL-5557 fix main pom.xml

* BAEL-5557 fix mvn profiles

* BAEL-5557 articles with equals and hashcode

* BAEL-5557 migrate assertions to assertj

* BAEL-5557 better assertions
2022-06-30 10:26:34 +01:00
tudor.marc ffe5873397 BAEL-5560 - quick fix for negative numbers 2022-06-30 10:24:43 +03:00
Christopher C. Smith 103a374ba1 Article/bael 5516 how to convert input stream to base64 string (#12219)
* java-shallow-deep tutorial

* BAEL-5516 How to Convert InputStream to base64 String
 - Junit test demonstrating the code

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
Cleaned up files

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
 - updated per Jira comments

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
 - rename and formatting to match Baeldung standards
2022-06-30 09:31:55 +05:30
Asjad J cee261bdcb Updated README.md
added link back to the article: https://www.baeldung.com/java-check-number-parity
2022-06-27 14:43:46 +05:00
Asjad J 7b420f92ec Updated README.md
added link back to the article: https://www.baeldung.com/jar-create-programatically
2022-06-27 12:50:39 +05:00
sampadawagde 90ba68c233 JAVA-12730: readme changes 2022-06-26 16:52:45 +05:30
sampadawagde 16f7224c44 JAVA-12730: modify parent pom 2022-06-26 16:26:33 +05:30
sampadawagde cba7eccc23 JAVA-12730: Rename java-collections-maps-3 to
core-java-collections-maps-5
2022-06-26 16:25:51 +05:30
sampadawagde a1fbbd3c0c JAVA-12730: Rename java-numbers-5 to core-java-numbers-5 2022-06-26 16:25:18 +05:30
sampadawagde 585717541c JAVA-12730: Rename java-numbers-4 to core-java-numbers-4 2022-06-26 16:24:57 +05:30
sampadawagde d3c8b9cdcf JAVA-12730: Rename java-numbers-3 to core-java-numbers-3 2022-06-26 16:24:35 +05:30
sampadawagde da4c248bbd JAVA-12730: Rename java-numbers-2 to core-java-numbers-2 2022-06-26 16:24:10 +05:30
sampadawagde f776d6d454 JAVA-12730: Rename java-numbers to core-java-numbers 2022-06-26 16:23:39 +05:30
sampadawagde 3502a350a4 JAVA-12730: Rename java-collections-conversions-2 to
core-java-collections-conversions-2
2022-06-26 16:22:56 +05:30
sampadawagde 45d808ce56 JAVA-12730: Rename java-collections-conversions to
core-java-collections-conversions
2022-06-26 16:22:21 +05:30
opokharel 90aa4a1239 BAEL-5421 by @opokharel
BAEL-5421 by @opokharel
2022-06-25 17:21:34 -06:00
opokharel 99a902b27b BAEL-5421 2022-06-25 12:48:16 -06:00
opokharel 6ff0745dce BAEL-5421 2022-06-25 12:45:17 -06:00
opokharel fac1883733 BAEL-5421 2022-06-25 12:41:04 -06:00
opokharel 8991dbe2df BAEL-5421 2022-06-25 12:36:55 -06:00
opokharel db1bf15694 BAEL-5421 2022-06-25 12:16:04 -06:00
opokharel 38664852dd BAEL-5421 2022-06-25 12:11:40 -06:00
opokharel 380b86b50e BAEL-5421 2022-06-25 11:57:23 -06:00
opokharel ca767321f7 BAEL-5421 2022-06-25 11:46:51 -06:00
opokharel baa612d3bb BAEL-5421 2022-06-25 11:42:18 -06:00
opokharel ded7b0af8f BAEL-5421 2022-06-25 11:35:39 -06:00
opokharel d29b19e148 BAEL-5421 2022-06-25 11:30:29 -06:00
opokharel acd0dc7894 BAEL-5421 2022-06-25 11:29:08 -06:00
opokharel c2bfe407de BAEL-5421 2022-06-25 11:09:55 -06:00
opokharel 1b29276c17 [BAEL-5421] by @opokharel
[BAEL-5421] by @opokharel
2022-06-25 11:00:26 -06:00
anuragkumawat bf6c478bb5 JAVA-12080 Update When to Use a Parallel Stream in Java 2022-06-25 22:17:32 +05:30
tudormarc 20dc126a64 BAEL-5560 - checking even and odd numbers (#12388) 2022-06-24 09:27:48 +05:30
kwoyke 69d21288b9 Merge pull request #12373 from anuragkumawat/JAVA-12359
JAVA-12359 Potential issue in Validate String as Filename in Java article
2022-06-23 21:26:38 +02:00
Loredana Crusoveanu a746e8119d BAEL-5632 add jar example 2022-06-22 13:45:36 +03:00
anuragkumawat 08a2c27339 JAVA-12359 Committing Test Cases for Colon and Slash Characters 2022-06-21 22:25:12 +05:30
Asjad J d6cbf68489 Updated README.md
added link back to the article: https://www.baeldung.com/java-destructor
2022-06-21 11:15:44 +05:00
Asjad J 2eda1aecd5 Updated README.md
added link back to the article: https://www.baeldung.com/java-calculate-time-ago
2022-06-21 11:13:13 +05:00
anuragkumawat 675e33fbab JAVA-12359 Code Review Changes 2022-06-20 20:55:14 +05:30
anuragkumawat 033ddb7a41 JAVA-11382 Update article Create an empty map in Java (#12383) 2022-06-20 18:46:31 +05:30
Loredana Crusoveanu bc4d404991 BAEL-5647 temporarily disable tests 2022-06-20 09:38:18 +03:00
anuragkumawat ca3fe06a56 JAVA-12359 Changes required in windows os test due to fix of unix os failing test 2022-06-18 11:56:32 +05:30
anuragkumawat 8d7014cfc0 JAVA-12359 Trying to fix failing unix platform test 2022-06-18 11:50:52 +05:30
anuragkumawat 2181c452d3 JAVA-12359 Fix jdk 9 and above build 2022-06-17 22:37:23 +05:30
anuragkumawat d81428bab7 JAVA-12359 Potential issue in Validate String as Filename in Java article 2022-06-17 22:26:31 +05:30
kwoyke d6dd1e2165 Merge pull request #12350 from dkapil/task/JAVA-11241
JAVA-11241 Added missing pom.xml for container modules and other cleanup
2022-06-17 09:02:21 +02:00
Dhawal Kapil 44fa00e0ea Task/java 12687 (#12367)
* JAVA-11493 Renamed spring-sleuth to spring-cloud-sleuth

* JAVA-12687 Fixed test by replacing site name with working site
2022-06-17 00:01:34 +05:30
Haroon Khan feaebfaafe [JAVA-12620] Fix link 2022-06-15 09:00:05 +01:00
Haroon Khan 3862ce78f3 [JAVA-12620] Split core-java-exceptions module 2022-06-14 21:56:25 +01:00
Dhawal Kapil a3a0fdfd96 JAVA-11241 Added missing pom.xml for container modules and other cleanup 2022-06-14 22:47:10 +05:30
hesamghiasi 1a1d011466 adding code for calculating time ago in Java for both version 7 and v… (#12313)
* adding code for calculating time ago in Java for both version 7 and version 8. The code contains pure java and third-party solutions.

* changing name of test classes to contain UnitTest in order to comply with the rules

* changing TimeGranularity.toMillis to abstract method
2022-06-14 17:22:57 +05:30
Asjad J c127ea183f Updated README.md
updated link for More articles from "/core-java-string-conversions-2" to "/core-java-modules/core-java-string-conversions-2"
2022-06-14 10:15:30 +05:00
Asjad J 4a59d16d5a Updated README.md
added link back to the article: https://www.baeldung.com/java-integer-parseint-vs-valueof

also updated the link for More articles from "/core-java-string-conversions" to "/core-java-modules/core-java-string-conversions"
2022-06-14 10:12:18 +05:00
Asjad J ede9aa9109 Updated README.md
added link back to the article: https://www.baeldung.com/java-unit-test-private-methods
2022-06-14 10:06:54 +05:00
Asjad J 8a6fd1ae8b Updated README.md
added link back to the article: https://www.baeldung.com/java-check-two-of-three-booleans
2022-06-14 10:04:16 +05:00
Asjad J f5172c74e2 Updated README.md
added link back to the article: https://www.baeldung.com/java-http-client-custom-header
2022-06-14 09:56:10 +05:00
Asjad J c8950386c6 Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-request-parameters
2022-06-14 09:54:16 +05:00
apeterlic 151e2981b8 Add - Is there a Destructor in Java (#12345) 2022-06-13 13:22:57 -07:00
sdhiray7 a21841a9f1 BAEL-5621 - parseInt vs valueOf in Java (#12275)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3
2022-06-10 18:05:39 +05:30
freelansam 2f2831e7cd JAVA-10605: Move multimodulemavenproject from core-java-modules to (#12309)
* JAVA-10605: Move multimodulemavenproject from core-java-modules to
maven-modules

* JAVA-10605: Move multimodulemavenproject to jdk9 build
2022-06-10 14:07:23 +05:30
Kai Yuan f2f8c0d0ac 3booleans (#12287)
* BAEL-4605: code and tests for composing constraints (#12180)

* BAEL-4605: code and tests for composing constraints

* BAEL-4605: small fix and formatted the code

* BAEL-4605: code review

* BAEL-4605: code and tests for composing constraints (#12180)

* BAEL-4605: code and tests for composing constraints

* BAEL-4605: small fix and formatted the code

* BAEL-4605: code review

Co-authored-by: etrandafir93 <75391049+etrandafir93@users.noreply.github.com>
2022-06-09 20:12:25 -05:00
etrandafir93 4d6f72f2a3 BAEL-5026: Sneaky Throws - refactoring and fixes (#12334)
* BAEL-5026: refactored code examples

* BAEL-5026: fixed test
2022-06-09 14:07:56 -07:00
thibaultfaure 34af11b770 BAEL-5461 code for the Unit Test Private Methods in Java article (#12240)
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
2022-06-09 16:19:24 +02:00
Krzysiek 55252bd755 JAVA-12099: Fix prev/next links 2022-06-08 08:40:34 +02:00
kwoyke fa6f3420d5 Merge pull request #12305 from keerthigadde/JAVA-12099/move-java-numbers
JAVA-12099 moved java-numbers modules to core-java-modules
2022-06-08 08:18:58 +02:00
Avin Buricha 74dbf0d0c9 BAEL-5486 Adding Parameters to Java HttpClient Requests (#11996)
* BAEL-5486 | Article Code

* BAEL-5486 | Remove comments and format fix

* BAEL-5486 | Add code sample

* BAEL-5486 | Common code extracted to a method

* BAEL-5486 | Use static import for Assertions

* BAEL-5486 | Removed external library

* BAEL-5486 | Removed BodyPublisher examples

* BAEL-5486 | Code examples added

* BAEL-5486 | Removed extra Class

Co-authored-by: Avin Buricha <avin.buricha@gupshup.io>
2022-06-07 17:32:10 +02:00
johnA1331 5effbad611 Update README.md 2022-06-07 17:18:21 +08:00
keerthigadde ace8e6a79f Merge branch 'master' of https://github.com/keerthigadde/tutorials into JAVA-12099/move-java-numbers
 Conflicts:
	core-java-modules/java-numbers-4/src/test/java/com/baeldung/bigdecimalzero/BigDecimalZeroChkUnitTest.java
2022-06-07 14:57:26 +10:00
keerthigadde 13070f30fc resolving conflicts 2022-06-07 13:37:28 +10:00
Asjad J 4c8b4485a4 Updated README.md
added link back to the article: https://www.baeldung.com/java-sort-list-alphabetically
2022-06-06 10:58:48 +05:00
keerthigadde 7d17e565cf corrected deleted line 2022-06-03 15:43:09 +10:00
keerthigadde d5117336ed JAVA-12099 moved java-numbers modules to core-java-modules 2022-06-03 15:10:13 +10:00
Asjad J 2f82564ea3 Updated README.md
added link back to the article: https://www.baeldung.com/java-reverse-arraylist
2022-06-02 12:07:25 +05:00
Asjad J e06edd0e37 Updated README.md
added link back to the article: https://www.baeldung.com/java-sort-list-by-date
2022-06-02 11:38:36 +05:00
Asjad J e667175a50 Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-timeout
2022-06-02 07:54:58 +05:00
doodoroma 9f1b9d12db Merge pull request #12257 from ukhan1980/BAEL-5556-code-for-sorting-article
[BAEL-5556] Add code for sorting article
2022-06-01 20:59:28 +02:00
Loredana Crusoveanu 9fdde5c323 various fixes 2022-06-01 16:19:28 +03:00
Kai Yuan fcdf53f3e4 BAEL-5623 reverse list article (#12253)
* reverse list article

* fix the package
2022-05-31 22:58:26 -05:00
uzma khan fb5dfc72cd [BAEL-5556] Add code for sorting article 2022-05-30 12:04:18 +01:00
kwoyke a7cae2e766 JAVA-9609: Create manual test for POSTing with HttpURLConnection (#12263) 2022-05-29 13:22:09 +05:30
Loredana Crusoveanu d8a9f121d9 Merge pull request #12110 from doljae/master
Remove unused imports
2022-05-27 21:37:26 +03:00
Mayank Aggarwal 26224e4686 BAEL-5558 (#12222)
* [BAEL-5438] Added Criteria Queries for Employee

* [BAEL-5558] Sorting By Date in Java

* BAEL-5558: Added and refactored tests name

* [BAEL-5558] Refactored the code.

* [BAEL-5558] Resolved PMD violation.

* [BAEL-5558] Indented with 4 spaces

* Refactored the Employee class

Co-authored-by: Mayank Agarwal <mayankaggarwal@zeta.tech>
2022-05-27 08:07:59 -07:00
vunamtien 9c40bfe297 BAEL-5487-java-httpclient-custom-header (#12269)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-05-27 13:48:42 +02:00
Loredana Crusoveanu 59314162f0 Merge pull request #12252 from Asjad-J/master
Updated README.md
2022-05-23 20:14:14 +03:00
Harry9656 8f54543306 JAVA-5484: Added Java Http Request Timeout (#12248)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-05-23 09:27:46 -07:00
Asjad J 1abbf7083d Updated README.md
added link back to the article: https://www.baeldung.com/java-check-character-vowel
2022-05-23 17:32:59 +05:00
kwoyke 1766f9b493 Merge pull request #12245 from anuragkumawat/JAVA-11422
JAVA-11422 Update article - A Guide To Java Regular Expressions API
2022-05-23 14:32:16 +02:00
Asjad J b208b96505 Updated README.md
added link back to the article: https://www.baeldung.com/java-domain-name-from-url
2022-05-23 17:30:29 +05:00
Asjad J 59dcedba09 Merge branch 'eugenp:master' into master 2022-05-23 17:27:48 +05:00
kwoyke 86540ddcc7 Merge pull request #12241 from anuragkumawat/JAVA-11421
JAVA-11421 Update article - RegEx for matching Date Pattern in Java
2022-05-23 14:22:14 +02:00
Asjad J d8adffdbb2 Updated README.md
added link back to the article: https://www.baeldung.com/jdk-com-sun-proxy
2022-05-23 17:15:39 +05:00
Asjad J 44a0ff9d9b Updated README.md
added link back to the article: https://www.baeldung.com/java-files-match-wildcard-strings
2022-05-23 16:52:12 +05:00
Asjad J fe2f7ca04c Updated README.md
added link back to the article: https://www.baeldung.com/java-scanner-usedelimiter
2022-05-23 16:42:16 +05:00
kwoyke a08700d5d4 Merge pull request #12243 from hkhan/JAVA-11892-logs-cleanup
[JAVA-11892] Logging  clean up
2022-05-23 08:50:10 +02:00
anuragkumawat 147d60e528 JAVA-11422 Update article - A Guide To Java Regular Expressions API 2022-05-22 12:46:31 +05:30
Haroon Khan 1efe19f383 [JAVA-11892] Logging clean up 2022-05-21 21:29:02 +01:00
anuragkumawat d46b2d0684 JAVA-11421 Update article - RegEx for matching Date Pattern in Java 2022-05-21 17:33:00 +05:30
apeterlic c3d957205a Move code to different module 2022-05-19 07:03:06 +02:00
apeterlic ae6ed6ba95 Get domain name from given URL 2022-05-19 06:50:58 +02:00
opokharel f8ce248236 [BAEL-5554] Find files that match a wildcard string in Java by @opokharel (#12190)
* BAEL-5554 by @opokharel

* deletedToMoveToSrcFolder

* movedToSrcFolder

* redoingForJenkins

* newPR for [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* @opokharel

* [BAEL-5554] @opokharel

* [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* Update SearchFileByWildcardTest.java

* Update SearchFileByWildcard.java

* Update SearchFileByWildcard.java

* Create SearchFileByWildcardUnitTest.java

* Delete SearchFileByWildcardTest.java

* [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* Update SearchFileByWildcardUnitTest.java

* Update SearchFileByWildcardUnitTest.java

* [BAEL-5554] UnitTestFiles by @opokharel

* Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/searchfilesbywildcards/SearchFileByWildcardUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* updated curly braces and assertions

Co-authored-by: KevinGilmore <kpg102@gmail.com>
2022-05-18 19:36:27 -05:00
Harry9656 75a751df3a JAVA-5484: New Java Http Client Timeout (#12223)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-05-18 16:34:23 -07:00
davidmartinezbarua 67303db98b Merge pull request #12184 from lsieun/master
BAEL-4463: What is com.sun.proxy.$Proxy
2022-05-18 13:34:46 -03:00
Ashley Frieze 7e3cddafaa BAEL-5562 Check if character is vowel (#12221) 2022-05-18 08:54:10 +01:00
515882294 f05171163b BAEL-4463: change method name 2022-05-18 01:51:16 +08:00
Asjad J d848af386a Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-post
2022-05-17 09:44:35 +05:00
davidmartinezbarua 72d16848d6 Merge pull request #12181 from thibaultfaure/article/BAEL-5383-use-delimiters
BAEL-5383 code for the use delimiters article
2022-05-16 17:45:52 -03:00
Thibault Faure 8fc971657a BAEL-5383 code for the use delimiters article 2022-05-15 22:11:18 +02:00
kwoyke 8e7dc50c0e Java 11788 (#12204)
* JAVA-11788: Cleanup pom properties in core-java-modules

* JAVA-11788: Cleanup pom properties
2022-05-15 12:23:05 +05:30
Eric Martin 4f8d67b7c1 BAEL-5577: Moving code to core-java-collections-4 (#12210)
Co-authored-by: martine <martine@OLA-3NBL1N2.mshome.net>
2022-05-14 11:17:48 -05:00
Loredana Crusoveanu f5380f98f6 BAEL-5420 fix equals method 2022-05-11 12:52:41 +03:00
Daniel Strmecki f24b9af096 Bael 5481 java httpclient post (#12118)
* BAEL-5481: Create new module

* BAEL-5481: Sync and async example

* BAEL-5481: Concurrent example

* BAEL-5481: Concurrent example

* BAEL-5481: JSON body example

* BAEL-5481: Form data example

* BAEL-5481: File upload example

* BAEL-5481: PR comments + Jenkins

* BAEL-5481: Update aftifact ID

* BAEL-5481: Spaces
2022-05-11 08:57:02 +01:00
Asjad J 35ba3dcd90 Updated README.md
added link back to the article: https://www.baeldung.com/java-iterator-vs-iterable
2022-05-10 06:57:31 +05:00
Asjad J d33c2ea16f Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-ssl
2022-05-10 06:53:47 +05:00
Asjad J 4a8826ae78 Updated README.md
added link back to the article: https://www.baeldung.com/java-atomic-set-vs-lazyset
2022-05-10 06:40:56 +05:00
Asjad J 0fce3b833a Updated README.md
added link back to the article: https://www.baeldung.com/java-swap-two-variables
2022-05-10 06:19:26 +05:00
Asjad J 05772eb519 Updated README.md
added a link back to the article: https://www.baeldung.com/java-equals-method-operator-difference
2022-05-10 06:12:49 +05:00
Mayank Aggarwal 81b9558342 BAEL-5558: Sorting By Date in Java (#12132)
* [BAEL-5438] Added Criteria Queries for Employee

* [BAEL-5558] Sorting By Date in Java

* BAEL-5558: Added and refactored tests name

* [BAEL-5558] Refactored the code.

* [BAEL-5558] Resolved PMD violation.

Co-authored-by: Mayank Agarwal <mayankaggarwal@zeta.tech>
2022-05-09 12:04:56 -07:00
kwoyke 7c2845bc79 Merge pull request #12185 from freelansam/JAVA-11792
JAVA-11792: Fix formatting of POMs
2022-05-09 11:04:26 +02:00
sampadawagde aed8f9100b JAVA-11792: Fix formatting of POMs 2022-05-08 16:36:25 +05:30
515882294 9a1d66f852 BAEL-4463: What is com.sun.proxy.$Proxy 2022-05-08 16:00:41 +08:00
apeterlic fa47170025 Difference between Iterable and Iterator (#12079)
* Difference between Iterable and Iterator

Add examples of the Iterable and the Iterator usage.

* Minor changes

Add UnitTests for Iterable examples

* Fix iterable example

Add Custom collection for the Iterable implementation example.

* Fix iterable example

Change the example for the Iterable interface implementation

* Revert "Fix iterable example"

This reverts commit 4015cbc038b1b657c54fa666193c0c7019a474ad.

* Minor changes
2022-05-08 12:08:49 +05:30
Abhinav Pandey d8b4f64525 BAEL-5483 - Java HttpClient with SSL (#12144)
* BAEL-5483 - Java HttpClient with SSL

* BAEL-5483 - Java HttpClient with SSL

* BAEL-5483 - Java HttpClient with SSL - changing test case url

* BAEL-5483 - Two space indentation for line continuation

Co-authored-by: Abhinav Pandey <Abhinav2.Pandey@airtel.com>
2022-05-08 10:41:49 +05:30
kpentaris 44bb031933 Add AtomicInteger.set() and .lazySet() usage example (#12099) 2022-05-07 08:57:31 +05:30
Mateusz Szablak 7e5463390b BAEL 5414 - Java null check why use == instead of .equals() (#12124) 2022-05-05 08:50:19 +05:30
anuragkumawat 9990d103cd JAVA-11533 Move core-java related modules to core-java-modules (#12119)
* JAVA-11533 Move core-java related modules to core-java-modules

* JAVA-11533 Remove moved modules from old parent pom

* JAVA-11533 Updated Readme and pom of parent module

* JAVA-11533 Revert changes made to Readme of parent module

* JAVA-11533 Moved articles to respective submouldes
2022-05-04 20:15:22 +05:30
Asjad J 44361faa48 Updated README.md
added link back to the article: https://www.baeldung.com/java-serialize-lambda
2022-05-03 15:27:08 +05:00
Asjad J afb318fab4 Updated README.md
added a link back to the article: https://www.baeldung.com/java-scanner-skip
2022-05-03 15:18:37 +05:00
sebx59 833e3f9e9f BAEL-5559 - Swap two variables using Java (#12113)
* BAEL-5559 - Swap two variables using Java

initial commit

* Updating tests names

Co-authored-by: HARDEMAN Sebastien <sebastien.hardeman@groupe-mma.fr>
2022-05-02 09:29:06 -07:00
davidmartinezbarua 0babebe608 Merge pull request #12101 from lsieun/master
BAEL-5283: Serialize a lambda in Java
2022-05-02 10:30:41 -03:00
515882294 47adb0759d BAEL-5283: fix unit test failed 2022-05-01 11:18:18 +08:00
Loredana Crusoveanu aa4a299266 Merge pull request #12138 from kwoyke/JAVA-10839
JAVA-10839: Update md5 hash of the sample file
2022-04-30 16:02:20 +03:00
ACHRAF TAITAI b64024d003 Bael 5381 update (#12142)
* BAEL-5381: Java Scanner.skip method with examples

* BAEL-5381: Edit unitTest class name

* BAEL-5381: update code after review
2022-04-30 11:40:27 +02:00
Krzysiek bce3dd832d JAVA-10839: Update md5 hash of the sample file 2022-04-29 11:53:35 +02:00
davidmartinezbarua 01e30fef42 Merge pull request #12107 from chrisjaimes/random_enum_value
added randomDirection method to Enum. Created RandomEnumGenerator
2022-04-28 11:30:10 -03:00
Christian Jaimes fdf79fdd87 removed unnecessary file 2022-04-27 06:54:46 -04:00
Christian Jaimes 4495b45d0b moved files to article-specific folder 2022-04-27 06:51:13 -04:00
johnA1331 cd78bd7c2a Update README.md 2022-04-27 17:43:41 +08:00
johnA1331 e81d306a64 Update README.md 2022-04-27 17:38:30 +08:00
johnA1331 f455f0b5a8 Update README.md 2022-04-27 17:28:08 +08:00
johnA1331 98c27e6b9f Update README.md 2022-04-27 16:53:44 +08:00
johnA1331 360ca495d4 Update README.md 2022-04-27 16:47:43 +08:00
johnA1331 c9a91ca3b1 Update README.md 2022-04-27 16:36:10 +08:00
davidmartinezbarua d49fe65f1d Merge pull request #11962 from alemoles/master
BAEL-5429 - How to Fix Java Compiler Error: Illegal Character (#9)
2022-04-26 15:25:31 -03:00
Harry9656 f429e707ff Added IPAddressLookup (#12097) 2022-04-26 08:32:53 +05:30
doljae c1cd68d30e code cleaning 2022-04-25 19:42:39 +09:00
ACHRAF TAITAI 0fc7298473 BAEL-5381: Java Scanner.skip method with examples (#12083)
* BAEL-5381: Java Scanner.skip method with examples

* BAEL-5381: Edit unitTest class name
2022-04-24 14:49:25 +02:00
Kai Yuan c05421898a listOfLists article (#12078) 2022-04-23 09:02:31 -05:00
kwoyke 609f43167e Merge pull request #12093 from anuragkumawat/JAVA-9557
JAVA-9557 GitHub Issue: Bug in StringPerformance.java
2022-04-22 10:36:24 +02:00
doljae f5f4ea015e Remove unused imports 2022-04-22 15:52:16 +09:00
Christian Jaimes 7093bdc456 added randomDirection method to Enum. Created RandomEnumGenerator. Added corresponding Unit Tests 2022-04-21 09:29:37 -04:00
515882294 0947c71710 BAEL-5283: Serialize a lambda in Java 2022-04-20 20:02:59 +08:00
andresluzu 3f78a1e9c0 BAEL-4559 Stop Execution After Certain Time improvements (#12076) 2022-04-19 20:02:34 -07:00
sanitaso 8fd4df52c2 BAEL-5416 How to Store HashMap<String, ArrayList> Inside a List (#12091)
* add unit test

* fix the error

* correcting the name of the test

* trigger build process

* change directory
2022-04-19 11:03:23 -07:00
etrandafir93 f4c4d890d6 BAEL-5465: changed example to LocalDateTime (#12086) 2022-04-18 16:13:13 -07:00
davidmartinezbarua 96fe8aed39 Merge pull request #12040 from Attila96/feature/java_httpclient_basic_authentication-bael-5458
[BAEL-5485] Java HttpClient Basic Authentication
2022-04-18 14:25:57 -03:00
Asjad J 5be5a938fe Updated README.md
added link back to the article: https://www.baeldung.com/java-list-vs-arraylist
2022-04-18 17:06:50 +05:00
Asjad J 316e7b1e04 Updated README.md
added link back to the article: https://www.baeldung.com/java-implements-vs-extends
2022-04-18 17:02:21 +05:00
anuragkumawat c89d0ef7b1 JAVA-9557 GitHub Issue: Bug in StringPerformance.java 2022-04-17 18:09:24 +05:30
Palaniappan Arunachalam 3045fea670 BAEL-5419: List vs ArrayList in Java + tests (#11936)
* BAEL-5419: List vs ArrayList in Java + tests

* BAEL-5419: Updated code +tests as per review comments

* BAEL-5419: Fixed failing tests

* BAEL-5419: Fixed JUnit test as per review comments
2022-04-14 21:41:00 +01:00
Asjad J 96a62ee2de Updated README.md
added link back to the article: https://www.baeldung.com/java-illegal-reflective-access
2022-04-13 09:56:02 +05:00
opokharel 266c908abf new PR to replace PR# 12052 by @opokharel (#12054)
* opokharel's code for "A quick and practical example of Hexagonal Architecture in Java"

* opokharel - added unit Tests

* [BAEL-5518]  by @opokharel

* updated Files

* updated formatting

* whitespaceFix

* [BAEL-5518] Create Array of Regex Matches

* reCreatingPR

* new PR to replace PR# 12052

* moving to new locn
2022-04-12 17:25:50 -07:00
davidmartinezbarua 60082cdba9 Merge pull request #12030 from lsieun/master
BAEL-1699: Java 9 illegal reflective access warning
2022-04-12 10:47:44 -03:00
515882294 3c2b8bb1f1 BAEL-1699 - modify code comment typo 2022-04-12 16:39:47 +08:00
sanitaso add090f2e1 BAEL-5416 How to Store HashMap<String, ArrayList> Inside a List (#12047)
* add unit test

* fix the error

* correcting the name of the test

* trigger build process
2022-04-11 20:15:51 -07:00
Attila Uhrin bb09c8675d Add examples for Java HttpClient with Basic authentication. 2022-04-09 17:15:06 +02:00
515882294 4b11cc78b0 BAEL-1699 - Java 9 illegal reflective access warning 2022-04-07 22:06:01 +08:00
Parikshit Murria 9759513bf9 BAEL-5417 - implements vs extends (#12011) 2022-04-04 21:02:42 +02:00
KevinGilmore f345f997a8 BAEL-5386: add link back to article (#12015) 2022-04-03 08:49:33 -05:00
Azhwani b1c60e9093 BAEL-5386: Format Instant to String in Java (#11970)
* first commit

* remove extra spaces

* add the requested changes
2022-03-31 20:04:10 -05:00
johnA1331 fd2b2c41a5 Update README.md 2022-03-31 13:52:47 +08:00
johnA1331 0f2f185443 Update README.md 2022-03-31 13:48:05 +08:00
johnA1331 4affc4906c Update README.md 2022-03-31 13:46:23 +08:00
johnA1331 f5be3c8fed Update README.md 2022-03-31 13:44:26 +08:00
Kai Yuan 0c229c433f add SetDiff for BAEL-5464 article (#11969)
* add SetDiff for BAEL-5464 article

* rename the method
2022-03-27 20:16:58 -05:00
Kai Yuan 3eeb5c7d2b read user input (#11946)
* read user input

* rename the unittest class
2022-03-27 11:24:31 -05:00
vaibhav007jain c9637e95fd BAEL-5463: added code for for-each loop in Java. (#11960) 2022-03-27 09:03:29 +05:30
etrandafir93 bcb342693c BAEL-5465: removed link from readme, reordered tests (#11977) 2022-03-25 09:09:52 -07:00
alemoles b933c21023 BAEL-5429 - How to Fix Java Compiler Error: Illegal Character (#9) 2022-03-23 01:41:59 -04:00
etrandafir93 4ab85e1ccc BAEL-5465: tests for subtracting days from date (#11954)
* BAEL-5465: tests for subtracting days from date

* BAEL-5465: upated readme
2022-03-22 08:59:07 -07:00
Azhwani 2e4b518c4b improve split string using pattern (#11945) 2022-03-20 09:19:29 -05:00
johnA1331 8439ee3c45 Update README.md 2022-03-16 21:50:01 +08:00
johnA1331 49630dc2f8 Update README.md 2022-03-16 21:45:47 +08:00
johnA1331 d7baaf8ced Update README.md 2022-03-16 21:25:15 +08:00
Mayank Aggarwal 14f2b7c2b8 [BAEL-5420] Added value object creation (#11901)
* [BAEL-5420] Added value object creation

* BAEL-5420 Added JavaBean and DTO classes

* [BAEL-5420] Indented the code

* Renamed EmployeePojo to EmployeePOJO

* BAEL-5420: Renamed to EmployeeDTO

* [BAEL-5420] Resolving Review comments

Co-authored-by: Mayank Agarwal <mayankaggarwal@zeta.tech>
2022-03-15 22:14:34 +05:30
Seshu Kumar T 3c5aaa6b09 Producer consumer problem (#11781)
* Producer consumer problem

* Simplified producer consumer added

Co-authored-by: Seshu Thanneeru <seshukumar.thanneeru@thoughtdata.com>
2022-03-15 14:57:51 +01:00
kwoyke cdc6380359 Merge pull request #11920 from freelansam/JAVA-10138
JAVA-10138 - Fix formatting of POMs
2022-03-14 15:00:17 +01:00
sampadawagde b8176a265a JAVA-10138 - Fix formatting of POMs 2022-03-13 14:48:44 +05:30
thibaultfaure c6bd572eda BAEL-4524 Acquire a Lock By Key in Java (#11872) 2022-03-10 20:34:39 -06:00
kwoyke 410ccd500b JAVA-10399: Fix assertion to include start date (#11893) 2022-03-09 22:38:22 +05:30
ACHRAF TAITAI c1d1134fb3 BAEL-4569: Formatting Email Text (#11910) 2022-03-08 12:52:10 -08:00
Asjad J 3d92ca2c41 Updated README.md
added a link back to the article: https://www.baeldung.com/java-bytebuffer
2022-03-07 19:31:42 +05:00
Asjad J 6fe59e7aea Updated README.md
added link back to the article: https://www.baeldung.com/java-rock-paper-scissors
2022-03-07 17:54:47 +05:00
Asjad J 08e84780bf Updated README.md
added link back to the article: https://www.baeldung.com/java-read-file-into-map
2022-03-07 17:50:33 +05:00
Haroon Khan 9da940a252 [JAVA-10398] Rename intermittent failing test to ManualTest 2022-03-06 00:41:44 +00:00
Loredana Crusoveanu ce22b5b69c Merge pull request #11875 from Asjad-J/master
Updated README.md files
2022-03-01 10:01:04 +02:00
maibin 786138fd9b Revert "Added a new Class and few test cases to the core-java-modules (#11867)" (#11874)
This reverts commit e10e20a24b.
2022-02-28 21:22:53 -08:00
Asjad J 188d5daaf6 Updated README.md
added link back to the article: https://www.baeldung.com/java-map-new-entry
2022-03-01 09:53:30 +05:00
Asjad J 085d41f3e5 Updated README.md
added link back to the article: https://www.baeldung.com/java-missing-return-statement
2022-03-01 09:30:07 +05:00
Asjad J bd175a879c Updated README.md
added link back to the article: https://www.baeldung.com/java-map-vs-hashmap
2022-03-01 09:21:53 +05:00
Asjad J ca1feef04f Updated README.md
Added link back to the article: https://www.baeldung.com/java-producer-consumer-problem
2022-03-01 09:13:20 +05:00
Kai Yuan 5582611107 file to map article (#11838)
* file to map article

* add aggregateByKeys method
2022-02-28 19:44:16 -06:00
Chukwuka Onyekachukwu Victor e10e20a24b Added a new Class and few test cases to the core-java-modules (#11867)
* added a new project: hexagonal architecture

* Added some test cases for the project

* Added a new project to demo the error: variable might not have been initialized

* Added a new Class to the core-java-modules

* Added a New Class to the core-java-module
2022-02-27 12:33:39 -08:00
Elmar Mammadov e65fe9db25 BAEL-5350: Java - How to create new Entry (key, value) (#11817)
* BAEL-5350:
1. Added example usage of creating entries with Java itself
2. Added example usage of creating entries with Apache commons collecttions & Guava
3. Custom entry class and its usages

* BAEL-5350:
1. Created unit tests

* BAEL-5350:
1. simplifed assertion for java 9 entry creation

* BAEL-5350:
1. moved into core-java-collections-maps-4 module
2. updated custom entry class and its unit test
2022-02-26 09:54:07 +05:30
vunamtien 1d80576a7c BAEL-5379-create-simple-rock-paper-scissors-game (#11855)
* BAEL-5379-create-simple-rock-paper-scissors-game

* BAEL-5379-create-simple-rock-paper-scissors-game

* BAEL-5379-create-simple-rock-paper-scissors-game

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-02-24 22:15:22 +01:00
lsieun 6ca42b7a4e BAEL-4151: Guide to ByteBuffer (#11859)
* Convert Byte Array to its Numeric Representation

* Remove Redundant Getter Method

* BAEL-4286 How to get the value of a bit at a certain position from a byte

* BAEL-4286(update): remove redundant test methods

* BAEL-4151: Guide to ByteBuffer
2022-02-24 22:13:13 +01:00
johnA1331 9011fdc4f5 Update README.md 2022-02-23 19:52:51 +08:00
johnA1331 cf98dad5db Update README.md 2022-02-23 19:51:34 +08:00
johnA1331 32813cbc3e Update README.md 2022-02-23 19:01:47 +08:00
doodoroma 39c8314079 Merge pull request #11780 from mayank4all/BAEL-5351
Bael 5351: Added empty map initialization methods in Java 8 & java 9
2022-02-22 08:20:21 +01:00
alemoles 26a0093154 BAEL-5391 - Java Error "Missing return statement" (#5) (#11845)
* BAEL-5391 - Java Error "Missing return statement" (#5)

* BAEL-5391 - Java Error "Missing return statement"
2022-02-21 19:13:41 -08:00
Eugene Kovko 5ee332c606 BAEL-5349 Example for the difference between map and hashmap (#11827)
* example for the difference between map and hashmap

* unit tests for the example

* rename unit tests

Co-authored-by: eugene.kovko <eugene.kovko@tensquaregames.com>
2022-02-21 17:05:08 -08:00
vunamtien 082d48e291 BAEL-5379-create-simple-rock-paper-scissors-game (#11846)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-02-21 18:35:48 +01:00
Haroon Khan cd70006bb6 [JAVA-9986] Fix ThreadStamped unit test 2022-02-17 08:51:17 +00:00
polomos 7966e98d90 BAEL-4388 Test reading keyStore without trustAnchor (#11785) 2022-02-15 15:14:36 -06:00
vunamtien 864b139aa4 BAEL-5332-convert-byte-array-and-uuid (#11822)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-02-15 21:19:44 +01:00
Loredana Crusoveanu c2aa464af1 Merge pull request #11706 from mobinskariya/master
Move arrive and wait after thread sleep and detailed logging
2022-02-15 18:15:41 +02:00
Loredana Crusoveanu 9dc5d75a16 formatting, additional details on how to run the app 2022-02-15 13:39:08 +02:00
Loredana Crusoveanu a4a03c4790 move remaining files for instrumentation article 2022-02-15 13:31:37 +02:00
Mayank Agarwal 7995f7d7c5 BAEL-5351: Moved to core-java-collections-4 2022-02-13 16:43:59 +05:30
johnA1331 63ea5889d2 Create README.md 2022-02-09 14:06:10 +08:00
vaibhav007jain 1bf44ff8ef BAEL-5280: added code for ArrayIndexOutOfBoundsException. (#11772)
* commited initial code for hexagonal architecture

* Deleting to check in again

* Deleing to check in again

* Push first code for Hexagonal Architecture

* final code with UT for JSON to Java conversion

* removed hexagonal-architecture code from last commit

* BEL-5071 updated README

* BAEL-5071: Undo README changes and added a nested object in the JSON example.

* BAEL-5071: fixed whitespace/indentation in JsonToJavaClassConversion.java

* BAEL-5151: Added code for getting the first of a String

* BAEL-5151: Renamed Unit Test

* BAEL-5151: Moved the files from core-java-string-operations to core-java-string-operations-3

* BAEL-5151: Replaced tabs with white spaces.

* BAEL-5228: Adding code for approaches to concatening null string in java

* BAEL-5228: Moved file to correct folder and added a UT.

* BAEL-5228: corrected import statements.

* BAEL-5228: corrected last commit.

* BAEL-5228: removed extra import.

* BAEL-5228: renamed UT

* BAEL-5280: added code for ArrayIndexOutOfBoundsException.

* BAEL-5280: moved code for ArrayIndexOutOfBoundsException in a new module.

* BAEL-5280: Fixed tab/spaces in pom.xml.

* BAEL-5280: Fixed indentation in ArrayIndexOutOfBoundsExceptionDemoUnitTest.java.

Co-authored-by: Vaibhav Jain <vaibhav.ashokjain@vodafone.com>
2022-02-08 13:45:38 +05:30
johnA1331 a63ea1944d Update README.md 2022-02-08 12:11:51 +08:00
Mayank Agarwal b35d0ea7c4 BAEL-5351: Unit Tests name as per BBD convention 2022-02-08 00:40:07 +05:30
Haroon Khan e1212155fe [JAVA-9895] Split concurrency-basic-2 module 2022-02-07 12:19:20 +00:00
Mayank Agarwal 54f43a311a BAEL-5351: Resolved PMD violations by renaming file 2022-02-05 12:03:34 +05:30
Mayank Agarwal 7f88e21e92 BAEKL-5351: Added method for empty sorted map 2022-02-05 11:56:54 +05:30
Mayank Agarwal 2e8381fbd7 BAEL-5351: Added unit tests for empty map methods 2022-02-05 11:53:37 +05:30
Mayank Agarwal d2332a5c10 BAEL-5351: Added empty map initialization methods in Java 2022-02-05 11:52:40 +05:30
kwoyke 896d32c182 Merge pull request #11750 from hkhan/JAVA-9019-clean-up-log-statements
Java 9019 clean up log statements
2022-02-02 11:21:55 +01:00
Haroon Khan a7980094d1 [JAVA-9021] Clean up uncommitted artifacts (#11754) 2022-02-01 19:38:56 +05:30
ashleyfrieze 69e04d5ac0 BAEL-5354 Add improvement to cover JDK11 solution to the repeated string problem (#11756) 2022-01-30 21:49:04 -06:00
Haroon Khan fc145be4a8 [JAVA-9019] Logging clean up 2022-01-29 16:24:15 +00:00
Haroon Khan f72971181e [JAVA-9019] Logging clean up 2022-01-28 22:50:49 +00:00
Haroon Khan a8ce62042f [JAVA-9019] Move sysout lines to info logging 2022-01-28 22:20:11 +00:00
johnA1331 2b6ef89555 Update README.md 2022-01-26 17:48:52 +08:00
johnA1331 3874415836 Update README.md 2022-01-26 17:45:09 +08:00
johnA1331 f92a336512 Update README.md 2022-01-26 17:41:44 +08:00
johnA1331 f1bdc807b5 Update README.md 2022-01-26 17:39:48 +08:00
johnA1331 af7c764ce9 Update README.md 2022-01-26 17:35:42 +08:00
johnA1331 a5defe6121 Update README.md 2022-01-26 17:26:50 +08:00
davidmartinezbarua 32e682542b Merge pull request #11710 from mladensavic94/master
Difference between NIO and NIO.2?
2022-01-23 12:16:33 -08:00
Greg Martin ff1ebafe37 Merge pull request #11588 from sachin071287/feature/bael-5271
BAEL-5271 set custom thread name
2022-01-23 14:33:46 -05:00
Loredana Crusoveanu 958a85f567 Merge pull request #11730 from Asjad-J/master
BAEL-47433 - add links to github-baeldung articles
2022-01-23 18:58:37 +02:00
Asjad J 21b2f0127a Update README.md
add link back to article: Hidden Classes in Java 15
2022-01-23 10:08:00 +05:00
Asjad J 4d0b7e6899 Update README.md
added link back to article
2022-01-23 09:57:22 +05:00
Asjad J 7cfd820f5b Update README.md
added link back to article: Generating a Java String of N Repeated Characters
2022-01-23 09:40:01 +05:00
Arash Ariani db396b39a9 BAEL-5131: constructor specification is added c (#11586)
* BAEL-5131: constructor specification is added c

* BAEL-5131: codes have been reformatted

* BAEL-5131: I've added a few minor changes over on this package.

* BAEL-5131: I've added a few minor changes over on this package.
2022-01-22 15:55:53 -06:00
Ulisses Lima 7ad433dcb6 [BAEL-4806] - How to test an LDAP connection from a client: code (#11664)
* working code

* added unit test

* [BAEL-4806] - How to test an LDAP connection from a client

Ticket: http://jira.baeldung.com/browse/BAEL-4806
Draft: https://drafts.baeldung.com/wp-admin/post.php?post=125004&action=edit

* removing draft project

* applying requested changes

* 1. renaming package to comply with java conventions;
* 2. breaking class into methods to enhance readability;
* 3. creating an 'execute' method so it's not necessary to call 'main';

* requested changes

* 1. adding final keyword to constants;
* 2. using diamond operator;

* Update LdapConnectionToolManualTest.java
2022-01-22 19:59:45 +01:00
Vlad Fernoaga 9cb3d6e8e5 BAEL-4714 - Java Concurrent HashSet equivalent to ConcurrentHashMap (#11721)
* add article code and unit tests

* fix PMD rule violation

Co-authored-by: vlad fernoaga <vlad.fernoaga-external@getyourguide.com>
2022-01-21 07:48:48 -08:00
Azhwani 02e4cf9f99 first commit (#11716) 2022-01-20 19:27:09 -06:00
johnA1331 b9399fb5f7 Update README.md 2022-01-20 18:08:58 +08:00
johnA1331 17e0cc77a1 Update README.md 2022-01-20 17:52:02 +08:00
johnA1331 605fbc0f8b Update README.md 2022-01-20 17:50:55 +08:00
vunamtien caa13dd4d1 compute x509 certificate thumbprint (#11717)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-01-18 22:43:29 +01:00
Krzysiek 5f4543c31d JAVA-9486: Use guava.version defined in the parent pom 2022-01-17 20:18:43 +01:00
Loredana Crusoveanu 000f3082f4 Merge pull request #11713 from kwoyke/JAVA-9123
JAVA-9123: POM properties cleanup
2022-01-17 20:04:15 +02:00
Krzysiek 8c08be0403 JAVA-9123: POM properties cleanup 2022-01-17 14:03:32 +01:00
ACHRAF TAITAI 4380185074 first commit (#11683) 2022-01-16 14:58:04 -06:00
Mladen Savic d0735facef Difference between NIO and NIO.2? 2022-01-16 21:31:59 +01:00
davidmartinezbarua bd34e3b56e Merge pull request #11665 from aalbatross/origin/BAEL-5158
BAEL-5158: Find which jar file a class is from
2022-01-15 14:01:39 -03:00
mobin 31ddc6a45d Move arrive and wait after thread sleep and detailed logging 2022-01-15 16:37:28 +05:30
pabloubal eb05d3fec3 BAEL-5178:An introduction to InstantSource (#11646)
* BAEL-5178:An introduction to InstantSource

* BAEL-5178:PR fixes

Co-authored-by: Pablo Ubal <pablo.ubal@flexit.es>
2022-01-13 20:42:54 +05:30
Loredana Crusoveanu f351643119 Merge pull request #11686 from johnA1331/master
BAEL-47035 - add links to github-baeldung articles
2022-01-13 11:02:43 +02:00
kwoyke 4eb04dc0bc Merge pull request #11670 from freelansam/JAVA-9022
JAVA-9022: Fix formatting of POMs
2022-01-13 09:50:07 +01:00
ravipathak 2267201db6 BAEL-5158: removing finding class. 2022-01-13 08:30:05 +00:00
ravipathak 7860356ae1 Merge remote-tracking branch 'mine/origin/BAEL-5158' into origin/BAEL-5158 2022-01-13 08:24:28 +00:00
ravipathak a2bd7b50ed BAEL-5158: Sample App and Unit test for finding ObjectMapper class in a jar. 2022-01-13 08:23:42 +00:00
Sameer 3133ffba7f AES Key Generation Strategies #BAEL-4459 (#11685)
* ways to generate AES keys

* exceptional cases

Co-authored-by: IN22910366 <d7495b5879fca1ec1367476a5395a60a8e9baec9>
2022-01-13 07:56:28 +01:00
johnA1331 1b9fa338cf Update README.md 2022-01-13 14:07:20 +08:00
johnA1331 31094c80ef Update README.md 2022-01-13 14:03:15 +08:00
Teica 7a5d817a1d BAEL-5277 generate string of repeated characters (#11611)
* BAEL-5277 generate string of repeated characters

* BAEL-5277 fixed test

* BAEL-5277 fixing tests

* removed public from class and methods, removed unnecessary test examples, extracted contants

* renamed constants

* renamed a test

* fixed the string repeat test

* removed public from class and method

* modified the test

* reset the java version

* tests added

* added apache dependency

* removed repeat method for string

* updated tests

* fixed tests

* added two additional tests

* formatted code

* renaming variables

* 1.0.0 | FIX removed unnecessary annotation

* removing EMPTY_STRING constant

Co-authored-by: Matea Pejčinović <matea.pejcinovic@intellexi.hr>
2022-01-12 23:44:15 +00:00
Sarath Chandra fa2b75a81c [BAEL-5077] Hidden Classes (#11663) 2022-01-10 20:28:05 +01:00
sampadawagde 65f643262d JAVA-9022: Fix formatting of POMs 2022-01-10 22:05:47 +05:30
KevinGilmore 75e9a2dfbb BAEL-5276: add link back to article (#11662) 2022-01-08 22:34:43 -06:00
Azhwani b6cff5acd4 init commit (#11643) 2022-01-07 16:57:13 -06:00
Seshu Kumar T ca7f2cc363 BAEL 5273 Sequence Input Stream (2nd commit) (#11649)
* SequenceInputStream changes

* assert statements corrected by keeping order as (expected, actual)

Co-authored-by: Seshu Thanneeru <seshukumar.thanneeru@thoughtdata.com>
2022-01-06 21:13:40 +01:00
Daniel Strmecki 8bf612c07a Feature/bael 5176 random number generators (#11641)
* BAEL-5176: Add simple test

* BAEL-5176: Add benchmark runner

* BAEL-5176: Update examples

* BAEL-5176: Refactor

* BAEL-5176: Refactor

* BAEL-5176: Refactor
2022-01-06 08:54:44 +00:00
johnA1331 377708d242 Update README.md 2022-01-05 20:40:01 +08:00
johnA1331 9dbe5bca89 Update README.md 2022-01-05 20:38:06 +08:00
johnA1331 91d7c16524 Update README.md 2022-01-05 20:34:20 +08:00
johnA1331 9cc3165ab4 Update README.md 2022-01-05 20:22:48 +08:00
johnA1331 9deeba7850 Update README.md 2022-01-05 20:14:44 +08:00
johnA1331 fb19c5e98c Update README.md 2022-01-05 19:39:58 +08:00
johnA1331 c41716248a Update README.md 2022-01-05 19:22:24 +08:00
ravipathak 83f6ae5d9d BAEL-5158: Sample App and Unit test for finding ObjectMapper class in a jar. 2022-01-05 00:56:45 +00:00
Loredana Crusoveanu 590784ff38 Merge pull request #11443 from max-zhilin/patch-1
Update README.md
2022-01-03 16:58:27 +02:00
Azhwani 148627f1d0 init commit (#11623) 2022-01-02 22:13:38 -06:00
Mainak Majumder cf49235b4e Equals() Vs Contentequals() Method in Java (#11598)
* Application source code for the Baeldung article "HTTP PUT vs POST
method in REST API"

* update indention in pom file, update code in Address class

* update indention

* rename application

* update pom

* source code for article "Connection timeout vs read timeout"

* Source code for Baeldung article BAEL-4896

* update code

* code for article "String Equals() Vs Contentequals() Method in Java"

* update code with tests

* code update

* update test methods

* remove upper case and wrong sequence test

* remove wrong sequence and upper case string variables
2022-01-03 07:29:00 +05:30
Vartika Nigam eb49143a48 initial commit for BAEL-5185 (#11484)
* initial commit for BAEL-5185

* fixed issues

* fixed issues

* Added Junit test case

Co-authored-by: Vartika_Nigam <Vartika_Nigam@dellteam.com>
2021-12-30 07:43:09 +05:30
Viktor Ardelean 81642558b7 BAEL-5291 Convert String to Float and back in Java (#11619)
* add hexagonal architecture example project

* rename class

* add unit test and integration test

* add new line

* reorder pom

* remove maven wrapper

* BAEL-5291 unit tests to showcase conversion from String to Float and back

* BAEL-5291 add some more unit tests

* BAEL-5291 remove evaluation module

* BAEL-5291 rename method names
2021-12-29 12:55:09 +01:00
priya-soni 1b4c43f7ba BAEL-5241 : Formatting code snippets as part of documentation comments (#11630) 2021-12-28 19:09:38 +01:00
Sameer 7d4fd180d8 Mini articles/java unknown stack trace (#11627)
* unknown source in stack trace

* Improved comment

* creating an intentional exception

Co-authored-by: Sameer <d7495b5879fca1ec1367476a5395a60a8e9baec9>
2021-12-28 09:06:17 -08:00
Amitabh Tiwari 00e2fed473 Update MySerializationUtils.java 2021-12-27 19:28:25 +05:30