Commit Graph

3047 Commits

Author SHA1 Message Date
Abhinav Pandey 0b193f4544 Bael 6577 (#14260)
* BAEL-6577 - Paralellize for loops in Java

* BAEL-6577 - Paralellize for loops in Java

* BAEL-6577 - Paralellize for loops in Java - adding JMH

* BAEL-6577 - Paralellize for loops in Java - using CompletableFuture
2023-07-04 20:07:40 +05:30
Shahul Basha 1c12d45700 BAEL-6633 (#14308)
* Deep copy of Arraylist

* Deep copy of Arraylist

* Deep copy of Arraylist updated as per review
2023-07-04 14:35:53 +02:00
parthiv39731 de3fc4f21a BAEL-6626 (#14345)
* BALE-6626
Check If a String Contains Non-Alphanumeric Characters in Java

* Move patterns to class level.

---------

Co-authored-by: parthiv39731 <parthiv39731@gmail.com>
2023-07-04 14:17:45 +02:00
Loredana Crusoveanu 03385bed6a Merge pull request #14339 from edizor/master
Update README
2023-07-03 13:07:16 +03:00
vunamtien 8e336ba020 BAEL-6644-read-zip-entries (#14321)
* read zip file entries

* add unit test

* update test code
2023-07-03 12:04:44 +02:00
Kasra Madadipouya ec8f9b4006 Merge pull request #14331 from timis1/JAVA-22498
JAVA-22498 Potential issue in "Difference Between FileReader and Buff…
2023-07-02 15:20:19 +02:00
Kai Yuan dbaba09fb9 [file-is-empty] Check If a File is Empty in Java (#14319)
* [file-is-empty] Check If a File is Empty in Java

* [file-is-empty] adjust code format

* [file-is-empty] rename test methods

* [file-is-empty] Then->then in method names
2023-07-01 21:39:05 -05:00
emanueltrandafir1993 09c62a2d70 BAEL-6579: fixing tests 2023-07-01 13:33:40 +02:00
emanueltrandafir1993 dbbd2a0a12 BAEL-6579: completable future's thread pool 2023-07-01 13:24:01 +02:00
edizor 8deff81ef9 Update README.md
[skip ci]
2023-07-01 17:54:36 +08:00
edizor 004089182c Update README.md
[skip ci]
2023-07-01 17:39:19 +08:00
edizor a24bbc6187 Update README.md
[skip ci]
2023-07-01 17:31:59 +08:00
edizor 9ec60c6e80 Update README.md
[skip ci]
2023-07-01 17:20:41 +08:00
edizor f9eec5f598 Update README.md
[skip ci]
2023-07-01 17:18:27 +08:00
edizor a328fcec3b Update README.md
[skip ci]
2023-07-01 16:59:56 +08:00
edizor 3f9cfa9beb Update README.md
[skip ci]
2023-07-01 16:50:32 +08:00
Dhawal Kapil f4d0dfcbbe JAVA-22625 Replaced Junit4 package with Junit5 (#14334) 2023-06-30 17:03:46 +05:30
timis1 8e800d1a2d JAVA-21187 Cleanup un-committed or un-ignored artifacts - Week 21 - 2023 (moved-5) (#14312)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-06-30 09:33:31 +05:30
Tapan Avasthi f9ac0f459e BAEL-6627: How to start a thread using an anonymous class (#14314)
Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2023-06-29 20:59:37 -05:00
timis1 615bd5c714 JAVA-22498 Potential issue in "Difference Between FileReader and BufferedReader in Java" 2023-06-29 22:35:10 +03:00
Gaetano Piazzolla f372563ca2 JAVA-21602 | fixing sync code block (#14318) 2023-06-28 20:18:08 +05:30
Azhwani 8e6bdc0205 BAEL-6597: How to get the last Day of the Month in Java (#14191) 2023-06-26 14:05:24 +02:00
Michael Pratt 5abc2c6d2c Add unit tests (#14306) 2023-06-25 20:42:54 -05:00
Loredana Crusoveanu 15dc4eb1d0 Merge pull request #14299 from collaboratewithakash/master
updated backlink
2023-06-25 18:50:11 +03:00
Bipin kumar dad0e8cf5e Java-20326: Changes made for replacing strSubstitutor with stringSubstitutor (#14301) 2023-06-25 18:19:11 +05:30
Gaetano Piazzolla e30ae6e6e0 JAVA-22238 | moved articles into correct locations. (#14297) 2023-06-24 23:41:14 +05:30
Azhwani faf6b79e86 BAEL-6397: Adding One Month to Current Date in Java (#14261) 2023-06-24 10:38:42 +02:00
collaboratewithakash d071df91a8 updated backlink 2023-06-24 13:29:37 +05:30
timis1 b39cee5e7a Java 20405 Align module names, folder names and artifact id - Week 18 - 2023 (moved-7) (#14290)
* JAVA-20405 Align name for spring-boot-aws

* JAVA-20405 Align module name for spring-boot-3-url-matching

* JAVA-20405 Align module name for core-java-streams-collect

* JAVA-20405 Align module name for dummy-surefire-junit47

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
2023-06-23 13:15:40 +05:30
Loredana Crusoveanu 84f60d9c86 Merge pull request #14276 from edizor/master
Update README
2023-06-22 11:42:46 +03:00
Bhaskar Ghosh Dastidar 6844a63c64 [BAEL-6090] vector api examples (#14274)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-06-21 13:50:45 -07:00
edizor 279ae5d2a4 Update README.md
[skip ci]
2023-06-21 20:22:12 +08:00
edizor e296c2fc7c Update README.md
[skip ci]
2023-06-21 18:26:24 +08:00
edizor f2b2b8546d Update README.md
[skip ci]
2023-06-21 17:36:02 +08:00
Dmytro Budym 6311a27f8c Add code examples for "Convert Java Array to Iterable" (#14144)
* Add code examples for "Convert Java Array to Iterable"

* fix formatting
2023-06-20 21:23:47 +05:30
Michael Olayemi c4334bf328 Hex Representation of a SHA-1 Digest of a String in Java (#14239)
* Hex Representation of a SHA-1 Digest of a String in Java

* Hex Representation of a SHA-1 Digest of a String in Java

* Hex Representation of a SHA-1 Digest of a String in Java
2023-06-20 21:17:00 +05:30
davidmartinezbarua 33b4f08269 Merge pull request #14243 from thibaultfaure/article/BAEL-5600
BAEL-5600 Code for the Read Date in Java using Scanner article
2023-06-19 13:07:37 -03:00
Kai Yuan b58d374862 [list<str>-to-list<int>] Convert a List of Strings to a List of Integers (#14244) 2023-06-18 10:53:42 -05:00
Bahaa El-Din Helmy e3afaf7996 Difference Between Boolean.TRUE and true in Java (#14253)
This commit is related to the article "Difference Between Boolean.TRUE and true in Java"
2023-06-16 14:34:34 -07:00
thibault.faure a88028874b BAEL-5600 Code for the Read Date in Java using Scanner article 2023-06-16 10:52:58 +02:00
edizor feb26e3bb0 Update README.md
[skip ci]
2023-06-15 22:59:15 +08:00
edizor cf0b7af0c1 Update README.md
[skip ci]
2023-06-15 22:32:42 +08:00
edizor c75bfdaf29 Update README.md
[skip ci]
2023-06-15 22:09:26 +08:00
edizor 0e52c2fbff Update README.md
[skip ci]
2023-06-15 21:57:03 +08:00
Kai Yuan 880803be21 [str-all-upper] Check if a String is All Uppercase or Lowercase in Java (#14227) 2023-06-13 22:40:37 -05:00
tienvn4 b13c7c6ec5 BAEL-6541-convert-relative-path 2023-06-13 17:02:25 +07:00
Mo Helmy e91d7301bd Convert List to JSON (#14226)
Hello there, 
The code provides a test class for a Java list to JSON conversion.
Regards,
Mohamed.
2023-06-12 13:10:24 -07:00
Michael Olayemi 680ddfef9c Performance and Memory Allocation Comparison Between List and Set (#14124)
* Performance and Memory Allocation Comparison Between List and Set in Java

* Performance and Memory Allocation Comparison Between List and Set in Java

* Performance and Memory Allocation Comparison Between List and Set in Java

* Performance and Memory Allocation Comparison Between List and Set in Java
2023-06-12 08:26:58 +05:30
Loredana Crusoveanu 5b65c7e54a Merge pull request #14216 from collaboratewithakash/master
backlink updated
2023-06-11 15:33:45 +03:00
Dhawal Kapil b3a5af07c0 JAVA-8924 Cleanup for spliterator article (#14221) 2023-06-11 13:09:16 +05:30
Bipin kumar ab884e145f JAVA-8924: changes made for adding example of trySplit() with spiterator (#14218) 2023-06-11 12:46:11 +05:30
Dhawal Kapil fec7001cbd JAVA-8924 Fixed spliterator packages and formatting (#14211) 2023-06-10 12:42:38 +05:30
Bipin kumar ecce4a4121 JAVA-8924: changes made for adding example of tryAdvance with spiterator (#14208)
* JAVA-8924: changes made for adding example of tryAdvance with spiterator

* JAVA-8924: changes made for adding example of tryAdvance with spiterator
2023-06-10 12:02:46 +05:30
Kai Yuan b4b271c0e4 [sort-dt-str] Sort Date Strings in Java (#14188) 2023-06-09 23:00:04 -05:00
davidmartinezbarua 0ba8d92f4c Merge pull request #14170 from thibaultfaure/article/BAEL-6595
BAEL-6595 code for the How Many Days Are There in a Particular Month …
2023-06-09 13:39:42 -03:00
Loredana Crusoveanu 14e0051237 Merge pull request #14206 from edizor/master
Update README.md
2023-06-09 17:29:41 +03:00
Loredana Crusoveanu 866e3e013a Merge pull request #14199 from eugenp/remove-module
remove duplicate code
2023-06-09 17:24:48 +03:00
edizor 5a3209051a Update README.md
[skip ci]
2023-06-09 22:09:21 +08:00
davidmartinezbarua 988a96ca97 Merge pull request #14055 from thibaultfaure/feature/BAEL-6438-move-article-to-new-submodule
Create new module core-java-string-operations-6
2023-06-09 09:57:25 -03:00
collaboratewithakash 77a5f9d17b backlinks removed 2023-06-09 14:58:22 +05:30
collaboratewithakash 48b212f7be backlinks removed 2023-06-09 14:49:18 +05:30
collaboratewithakash 044783e348 backlink updated 2023-06-09 14:39:30 +05:30
collaboratewithakash 17a459a2a3 backlink updated 2023-06-09 14:34:21 +05:30
thibault.faure 12de8904ab BAEL-6595 code for the How Many Days Are There in a Particular Month of a Given Year article 2023-06-09 01:03:58 +02:00
Azhwani 5bfb63b2a1 BAEL-6545: Update article https://www.baeldung.com/java-read-lines-large-file (#14168) 2023-06-08 21:43:31 +02:00
sdhiray7 9918d614e6 BAEL-5621 Combining two byte arrays (#14129)
* 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

* BAEL-5321 Initial commit

* BAEL-5321 Initial commit 2

* [BAEL-5321] review comments

* [BAEL-5321] constructor

* [BAEL-5321] inline

* BAEL-6396 Initial commit

* BAEL-6396 Files reorg
2023-06-08 22:55:28 +05:30
Loredana Crusoveanu 36f28871ce Merge pull request #14198 from edizor/master
Update README
2023-06-08 19:33:07 +03:00
Loredana Crusoveanu e881e00b16 remove duplicate code 2023-06-08 19:32:16 +03:00
edizor 8becf2883d Update README.md
[skip ci]
2023-06-08 23:30:21 +08:00
edizor 029216e65b Update README.md
[skip ci]
2023-06-08 23:12:41 +08:00
edizor 33ed21921a Update README.md
[skip ci]
2023-06-08 23:09:26 +08:00
edizor a428334e81 Update README.md
[skip ci]
2023-06-08 23:03:13 +08:00
Ulisses Lima 80e0f8b2e6 check instanceof Movie 2023-06-07 12:20:25 -03:00
Kai Yuan f0124dcca0 [unique-elements-list] Get Unique Values From an ArrayList In Java (#14152) 2023-06-05 21:02:36 -05:00
lucaCambi77 f265b51841 [BAEL-6486] - Returning a Value After Finishing Thread's Job in Java (#14101)
* feat: threads with return value

* pmd violation
2023-06-05 20:52:46 -05:00
Kai Yuan 9ff3b1dd9b [map-str-obj-to-str-str] converting a Map<String, Object> to a Map<String, String>. (#14175) 2023-06-05 20:43:28 -05:00
Loredana Crusoveanu 17fc896c98 Update README.md 2023-06-02 17:47:05 +03:00
Loredana Crusoveanu 2c0482c409 Merge branch 'master' into master 2023-06-02 16:23:25 +03:00
edizor 100688ace2 Update README.md
[skip ci]
2023-06-02 08:55:33 +08:00
edizor 50cf2cee23 Update README.md
[skip ci]
2023-06-02 08:46:50 +08:00
edizor 69febffe22 Update README.md
[skip ci]
2023-06-02 08:40:51 +08:00
edizor e41e0f203f Update README.md
[skip ci]
2023-06-02 08:31:53 +08:00
edizor 8ca4e21db4 Update README.md
[skip ci]
2023-06-02 08:16:39 +08:00
edizor 857442f347 Update README.md
[skip ci]
2023-06-02 08:13:40 +08:00
collaboratewithakash c433720734 backlinks removed 2023-06-01 12:23:54 +05:30
Bahaa El-Din Helmy 0938194300 Article: Converting Object To Map in Java (#14160)
This commit is related to the article entitled "Converting Object To Map in Java"
2023-05-31 11:35:56 -07:00
Bahaa El-Din Helmy 02f497bf75 Update article "Difference Between \z and \Z in a Regular Expression in Java" (#14151)
This commit for "Update article "Difference Between \z and \Z in a Regular Expression in Java""
2023-05-31 11:09:25 -07:00
collaboratewithakash cef108190d backlink updated 2023-05-31 17:33:18 +05:30
collaboratewithakash e2320e0a23 backlink updated 2023-05-31 17:24:54 +05:30
collaboratewithakash c1822f9c32 backlink updated 2023-05-31 17:23:33 +05:30
collaboratewithakash 23a62499f8 backlink updated 2023-05-31 17:20:13 +05:30
collaboratewithakash 899c36a216 backlink updated 2023-05-31 17:07:22 +05:30
collaboratewithakash 0902a64ca7 backlink updated 2023-05-31 17:01:08 +05:30
collaboratewithakash 2123276c3a backlink updated 2023-05-31 16:59:22 +05:30
collaboratewithakash 105b97ba77 backlink updated 2023-05-31 16:45:32 +05:30
collaboratewithakash 8fb1a1ba76 backlink updated 2023-05-31 16:43:10 +05:30
collaboratewithakash 0d31bf6752 backlink updated 2023-05-31 16:40:09 +05:30
collaboratewithakash 8e18b010fc backlink updated 2023-05-31 16:38:34 +05:30
collaboratewithakash 7a6bbd8816 backlink updated 2023-05-31 16:36:37 +05:30
collaboratewithakash 9b85fbe628 backlink updated 2023-05-31 16:35:19 +05:30
collaboratewithakash 25af10719f backlink updated 2023-05-31 16:33:31 +05:30
collaboratewithakash 7dd560cf85 backlink updated 2023-05-31 16:28:25 +05:30
collaboratewithakash 304916aaa0 backlink updated 2023-05-31 16:27:10 +05:30
collaboratewithakash 449e4a3c14 backlink updated 2023-05-31 16:26:13 +05:30
collaboratewithakash 9d81f5f341 backlink updated 2023-05-31 16:25:02 +05:30
collaboratewithakash a77d6a5d76 backlink updated 2023-05-31 16:23:51 +05:30
collaboratewithakash bcf40e5497 backlink updated 2023-05-31 16:07:51 +05:30
collaboratewithakash b1746c0302 backlink updated 2023-05-31 16:05:37 +05:30
collaboratewithakash e2ed41cd78 backlink updated 2023-05-31 16:02:45 +05:30
collaboratewithakash fae6ad80ff backlink updated 2023-05-31 15:57:10 +05:30
collaboratewithakash 30c571ad67 backlink updated 2023-05-31 15:53:10 +05:30
collaboratewithakash 148511608b backlink updated 2023-05-31 15:51:11 +05:30
collaboratewithakash cec01e1aed backlink updated 2023-05-31 15:49:39 +05:30
collaboratewithakash 5daa7cb722 backlink updated 2023-05-31 15:47:50 +05:30
collaboratewithakash d6c8acde5a backlink updated 2023-05-31 15:46:34 +05:30
sachin 3d15ed0020 bael-5728 added code (#14010)
* bael-5728 added code

* bael-5728 added code

* bael-5728 added code

* bael-5728 code fix

* bael-5728 code fix

---------

Co-authored-by: Sachin kumar <sachin.n.kumar@oracle.com>
2023-05-30 20:24:52 -05:00
collaboratewithakash 3d36484001 backlink updated 2023-05-30 17:47:55 +05:30
collaboratewithakash ca9a6b3236 backlink updated 2023-05-30 17:45:57 +05:30
collaboratewithakash 0dd8327c59 backlink updated 2023-05-30 17:44:35 +05:30
collaboratewithakash b507338c7d backlink updated 2023-05-30 17:33:21 +05:30
collaboratewithakash 53c1e1451e backlink updated 2023-05-30 17:31:46 +05:30
collaboratewithakash 251710a9eb backlink updated 2023-05-30 17:29:13 +05:30
collaboratewithakash 6ad2b04afb backlink updated 2023-05-30 17:26:02 +05:30
collaboratewithakash a64ad147d7 backlink updated 2023-05-30 17:24:41 +05:30
collaboratewithakash 8645733aa2 backlink updated 2023-05-30 17:11:31 +05:30
collaboratewithakash 48c08eaad3 backlink updated 2023-05-30 17:10:24 +05:30
collaboratewithakash 21f7ce6f07 backlink updated 2023-05-30 17:08:52 +05:30
collaboratewithakash 65206efc8a backlink updated 2023-05-30 17:07:11 +05:30
Kai Yuan ee4923a29d [list-with-default] Set Default Value for Elements in List (#14125)
* [list-with-default] Set Default Value for Elements in List

* [list-with-default] remove the ncopies and stream methods.

* [list-with-default]  remove irrelevant codes
2023-05-29 09:50:55 -05:00
Loredana Crusoveanu f24b58db1b Merge pull request #14134 from collaboratewithakash/master
backlinks added
2023-05-29 17:48:03 +03:00
Azhwani 0238c2b948 BAEL-6465: How to handle NoSuchElementException when reading a file through a Scanner ? (#13999) 2023-05-28 11:06:59 +02:00
collaboratewithakash 71bc8122b7 backlink updated 2023-05-27 17:16:00 +05:30
collaboratewithakash a4ef6abdff backlink updated 2023-05-27 17:12:28 +05:30
collaboratewithakash 47ae1bdc35 backlink updated 2023-05-27 17:06:19 +05:30
collaboratewithakash e3805a44cb backlink updated 2023-05-27 16:59:40 +05:30
collaboratewithakash 32b277b9f5 backlink updated 2023-05-27 16:45:37 +05:30
collaboratewithakash 9aad77c8f7 backlink updated 2023-05-27 16:17:36 +05:30
collaboratewithakash b435391943 backlink updated 2023-05-27 16:09:46 +05:30
collaboratewithakash 60c9ad3923 backlink updated 2023-05-27 16:07:03 +05:30
collaboratewithakash f5cd3dcdba backlink updated 2023-05-27 15:28:39 +05:30
collaboratewithakash deda69da7b updated backlink 2023-05-27 15:16:58 +05:30
Loredana Crusoveanu 455b68e052 Merge pull request #14123 from edizor/master
Update README
2023-05-26 10:49:54 +03:00
edizor 2b7abfca02 Update README.md
[skip ci]
2023-05-26 11:00:47 +08:00
edizor 7d85e9e8dc Update README.md
[skip ci]
2023-05-26 10:43:38 +08:00
edizor cd3684d0b4 Update README.md
[skip ci]
2023-05-26 10:35:47 +08:00
edizor c6b2b99bb2 Update README.md
[skip ci]
2023-05-26 10:21:02 +08:00
Bahaa El-Din Helmy 296be923ce Convert Hashmap to JSON object in Java (#14118)
This commit is related to the article "Convert Hashmap to JSON object in Java"
2023-05-25 17:45:29 -07:00
Kasra Madadipouya 605d45ab11 Merge pull request #13810 from press0/master
pr: add return types for assertion; test WrongVoucher vs GoodVoucher
2023-05-25 20:04:24 +02:00
edizor 7ed8ff9e9f Update README.md
[skip ci]
2023-05-26 00:46:34 +08:00
edizor 73de91bf9b Update README.md
[skip ci]
2023-05-26 00:38:16 +08:00
edizor 8975978757 Create README.md
[skip ci]
2023-05-26 00:34:00 +08:00
edizor 5ff88e9dab Update README.md
[skip ci]
2023-05-26 00:19:08 +08:00
edizor 30f0337020 Update README.md
[skip ci]
2023-05-26 00:09:07 +08:00
edizor 317b7dcd0d Update README.md
[skip ci]
2023-05-25 23:20:07 +08:00
Azhwani 752b49ba02 BAEL-6461: What's the difference between Scanner next() and nextLine() methods? (#14057) 2023-05-24 17:26:01 +02:00
Bahaa El-Din Helmy 82500be545 Array vs List Performance in Java (#14114)
This commit is related to the article entitled "Array vs List Performance in Java"
2023-05-24 07:59:59 -07:00
Bahaa El-Din Helmy 05a672410d Convert Hashmap to JSON object in Java (#14110)
This commit is for Convert Hashmap to JSON object in Java
2023-05-23 17:05:20 -07:00
Kai Yuan df15627edc [output-to-file] Write Console Output to Text File in Java (#14082)
* [output-to-file] Write Console Output to Text File in Java

* [output-to-file] rebase on the master
2023-05-23 16:56:31 -05:00
Kai Yuan 2ea83407d3 [scanner-with-spaces] how to take input as String with spaces in Java… (#14044)
* [scanner-with-spaces] how to take input as String with spaces in Java using Scanner?y

* [scanner-with-spaces] fix typo
2023-05-23 16:50:10 -05:00
thibault.faure 159a127379 Create new module core-java-string-operations-6
Move code for the Find the Longest Word in a String article
2023-05-22 19:51:40 +02:00
davidmartinezbarua 1161c21168 Merge pull request #14037 from andrewtarry/string-conversion
add value of comparison
2023-05-22 14:39:18 -03:00
Vini a54aa7c49b Merge pull request #14093 from sam-gardner/BAEL-6334-check-list-element-in-other-list
BAEL-6334 Make object properties example clearer
2023-05-22 14:36:10 +02:00
Vini 2285893a3d Merge pull request #13761 from ciphx/string_to_int_encapsulation
https://jira.baeldung.com/browse/BAEL-5859
2023-05-22 13:42:20 +02:00
Sam Gardner 58633573a3 BAEL-6334 Make object properties example clearer 2023-05-22 10:35:26 +01:00
Deboshree d99790ef18 changing branch 2023-05-22 13:26:06 +05:30
Azhwani a0931c50ce BAEL-6460: Why is Scanner skipping nextLine() after using other next functions? (#14079) 2023-05-22 09:04:42 +02:00
Deboshree 2bf46ddbcc changing unit test class name 2023-05-21 23:41:53 +05:30
ciphx acdafe5817 Merge branch 'eugenp:master' into string_to_int_encapsulation 2023-05-21 23:37:26 +05:30
Deboshree a0079d22d2 removed optional specific function 2023-05-21 23:36:38 +05:30
Andrew Tarry 21b5f5f260 Delete README.md 2023-05-21 20:13:34 +03:00
vaibhav007jain 9fe90d4663 Bael-6331: Adding changes for creating and checking empty streams (#14047)
* BAEL-6331: Create EmptyStreams.java

* BAEL-6331: Create EmptyStreamsUnitTest.java
2023-05-21 08:15:43 +05:30
Bahaa El-Din Helmy 7a8afbb58f Array vs List Performance in Java (#14078)
This commit is related to the article entitled "Array vs List Performance in Java"
2023-05-20 14:52:56 -07:00
Bahaa El-Din Helmy 7c47447776 Convert Hashmap to JSON object in Java (#14070)
* Convert Hashmap to JSON object in Java

This commit is related to the article entitled "Convert Hashmap to JSON object in Java"

* Convert Hashmap to JSON object in Java

This commit is for the article "Convert Hashmap to JSON object in Java"
2023-05-20 09:00:00 -07:00
Eugene Kovko 7317f0816d BAEL-4615: Create and Detect Memory Leak in Java (#14060) 2023-05-19 15:00:16 -07:00
Eugene Kovko 2091146702 BAEL-5947: Moving a project to a different package (#14054)
* Revert "feat: BAEL-5947 External Debugging with JMXTerm (#13847)"

This reverts commit ae04ab2510.

* BAEL-5947: Moving a project to a different package
2023-05-19 12:29:10 -07:00
davidmartinezbarua fcd357036f Merge pull request #14007 from AndiCover/master
BAEL-6428 Make a Method Execute Only Once in Java
2023-05-19 10:02:30 -03:00
AndiCover d065736bf4 BAEL-6428 Make a Method Execute Only Once in Java 2023-05-18 19:20:49 +02:00
Bahaa El-Din Helmy c9aef79909 Title: Array vs List Performance in Java (#14034)
This commit related to the article entitled "Array vs List Performance in Java".
2023-05-18 08:19:14 -07:00
Deboshree c4431dadf5 change return type to optional 2023-05-18 19:27:02 +05:30
Sam Gardner 8430235bb1 Merge branch 'master' into BAEL-6334-check-list-element-in-other-list 2023-05-18 10:31:57 +01:00
Sam Gardner ae1a3f9e79 BAEL-6334 Improve test names and typos 2023-05-18 10:27:08 +01:00
Bhaskar Ghosh Dastidar da265d4f81 [BAEL-6339] custom iterator with testcases (#14038)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-05-17 13:32:04 -07:00
Andrew Tarry 5ca5a1e8e7 add value of comparision 2023-05-17 21:23:14 +03:00
edizor 73885aade0 Update README.md
[skip ci]
2023-05-17 21:12:44 +08:00
edizor 768e6b767a Update README.md
[skip ci]
2023-05-17 20:58:22 +08:00
edizor 2248a39409 Update README.md
[skip ci]
2023-05-17 20:54:43 +08:00
edizor 558f03a8d2 Update README.md
[skip ci]
2023-05-17 20:42:22 +08:00
edizor 9f2bee0824 Update README.md
[skip ci]
2023-05-17 20:36:14 +08:00
edizor 1f9c1fdb37 Update README.md
[skip ci]
2023-05-17 20:33:02 +08:00
edizor 4e27f78bf0 Update README.md
[skip ci]
2023-05-17 20:28:36 +08:00
edizor ff2ca36926 Update README.md
[skip ci]
2023-05-17 20:24:12 +08:00
Michael Olayemi 43c4e4b337 Hashing with Argon2 in Java (#14009)
* Hashing with Argon2 in Java

* Hashing with Argon2 in Java
2023-05-16 20:51:10 +05:30
Azhwani 389a106697 BAEL-6398: Java PrintStream to String (#13998) 2023-05-16 08:28:25 +02:00
Bahaa El-Din Helmy 2da5d14e25 Add files via upload (#14006) 2023-05-15 08:14:21 -07:00
Dileesha Rajapakse 65f6f416c5 Add java interface single implementation examples (#13972) 2023-05-14 22:45:57 +05:30
Ehsan Sasanianno 4fb65f5c6e JAVA-16946 Upgrade h2 database version for remaining modules (#13976) 2023-05-14 20:13:06 +03:00
Vartika Nigam e1272ca8fe BAEL-6264 added class to show how to instantiate ArrayBlockingQueue a… (#13851)
* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue and LinkedBlockingQueue

* BAEL-6264 added unit test case

* modified test case

* BAEL-6264 deleted BlockingQueueImplExample file not needed anymore

* BAEL-6264 code review changes moved class file to different module

---------

Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
2023-05-13 10:32:14 -05:00
Kai Yuan 535d967fd9 [os-to-is] Convert an OutputStream to an InputStream (#13992) 2023-05-13 10:09:08 -05:00
Sam Gardner 956660497a BAEL-6334 Add example code for checking if a list element is in another list 2023-05-12 11:58:08 +01:00
Loredana Crusoveanu f9da3f6b9c Merge pull request #14000 from edizor/master
Update README
2023-05-12 10:53:15 +03:00
Bahaa El-Din Helmy 1bf1ad2a3a Title: Regular Expression: \z vs \Z Anchors in Java (#13994)
Hello,
This commit related to the article entitled "Regular Expression: \z vs \Z Anchors in Java"
2023-05-11 09:18:45 -07:00
edizor 11ecd39504 Update README.md
[skip ci]
2023-05-12 00:02:53 +08:00
edizor aba6f36ac7 Create README.md
[skip ci]
2023-05-12 00:01:07 +08:00
edizor 035717faa7 Update README.md
[skip ci]
2023-05-11 23:59:08 +08:00
edizor 2556be758d Update README.md
[skip ci]
2023-05-11 23:52:22 +08:00
edizor 03cc9c90b7 Update README.md
[skip ci]
2023-05-11 23:42:17 +08:00
edizor b22707d69e Update README.md
[skip ci]
2023-05-11 23:33:10 +08:00
brokenhardisk 4192bf3bdc BAEL-6342 JUnit Test Class for Null and Empty String (#13963) 2023-05-11 09:23:11 +05:30
Kai Yuan a74f4ec8f5 [scanner-to-array] Saving Java Scanner Input to an Array (#13969) 2023-05-10 20:29:50 -05:00
Kilian Schneider c06e1ab413 BAEL-6185 reuse string builder performance (#13791) 2023-05-10 07:39:34 -07:00
Anastasios Ioannidis 1ff112228c JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975) 2023-05-09 12:55:49 +03:00
davidmartinezbarua 1fd15c9557 Merge pull request #13934 from thibaultfaure/articles/BAEL-6438-find-longest-word-in-given-string
BAEL-6438 Code for the Find the longest word in a given string article
2023-05-09 00:41:01 -03:00
Bahaa El-Din Helmy 53d269ca68 Add files via upload (#13978) 2023-05-08 14:11:33 -07:00
Eugene Kovko 4cc0380249 BAEL-6501 Update article "The producer-consumer problem example in Java" (#13973)
* BAEL-6501 Changed the synchronization block to use the DataQueue

* BAEL-6501 Fixed the platform agnostic new lines

* BAEL-6501 Moved ID increment to a static method

* BAEL-6501 Added a logger
2023-05-08 14:04:21 -07:00
3hsan e16bd13cc8 JAVA-16946: disable unit test for core-java-lang-oop-modifiers module for maintenance (#13968) 2023-05-08 17:13:49 +03:00
3hsan bc19c39c52 JAVA-19152: fix intermittently failing RequestProcessorUnitTest (#13957) 2023-05-08 15:53:44 +03:00
Kai Yuan 65cf74f42f [compByteArrays] Comparing Two Byte Arrays in Java (#13935) 2023-05-07 10:05:37 -05:00
Loredana Crusoveanu 8e6f7bf490 Merge pull request #13956 from edizor/master
Update README
2023-05-07 08:10:20 +03:00
Bhaskar Ghosh Dastidar ce79066afc [BAEL-6253] record equals hashcode (#13958)
* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode test case

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-05-06 09:28:20 -07:00
Kai Yuan dea82bf189 [BAEL-6485_RM-Punctuation] Remove Punctuation (#13946) 2023-05-05 20:11:54 -05:00
ACHRAF TAITAI 3ab60dc307 BAEL-6332: Calling Non-Static Method In Static Method In Java (#13940) 2023-05-05 22:25:50 +02:00
thibault.faure daf01922de BAEL-6438 Code for the Find the longest word in a given string article 2023-05-05 20:50:54 +02:00
edizor 7d26ae4a5e Update README.md
[skip ci]
2023-05-06 00:19:31 +08:00
edizor 35d5f583ac Update README.md
[skip ci]
2023-05-06 00:15:22 +08:00
edizor bb7a389e01 Update README.md
[skip ci]
2023-05-06 00:09:33 +08:00
edizor cc061011c7 Update README.md
[skip ci]
2023-05-05 23:28:38 +08:00
edizor 69e5f59d4b Update README.md
[skip ci]
2023-05-05 23:24:09 +08:00
edizor f37f777d93 Update README.md
[skip ci]
2023-05-05 21:41:29 +08:00
Ana Peterlić d313b76fc7 BAEL-5814 - Is CompletableFuture Non-blocking (#13917)
* BAEL-5814 - Is CompletableFuture Non-blocking

* Fix the formatting
2023-05-04 07:25:07 +05:30
Arya 23ec3d24d2 Added the code for "The difference between BufferedReader and FileReader". (#13942) 2023-05-03 14:52:17 -07:00
Daniel Strmecki 078826eef5 BAEL-6254: Scoped values (#13756) 2023-05-03 21:00:47 +01:00
press0 bd04051b9e Merge branch 'eugenp:master' into master 2023-05-02 21:40:51 -05:00
Kai Yuan 5cac883023 [BAEL-6436_printQuotesAroundString] Print "" Quotes Around a String in Java (#13925) 2023-05-02 16:31:35 -05:00
Alejamdro dbf99bc402 BAEL-6327 - Find the index of an element in a Java array (#13844) 2023-05-02 19:04:36 +05:30
Azhwani 7d86466fb7 BAEL-6435: Reverse a String in Java 8 using Lambda and Streams (#13910) 2023-05-02 08:29:16 +02:00
Shaun Phillips 18834b349e BAEL-6325 Create core-java-lang-oop-constructors-2 (#13933)
* BAEL-5915 Added different ways to create an object

* BAEL-6325 Create core-java-lang-oop-constructors-2
2023-05-01 19:53:21 -07:00
Loredana Crusoveanu 2d2c842d2f Merge pull request #13920 from edizor/master
Update README
2023-04-30 11:23:00 +03:00
Kai Yuan d085dae380 [BAEL-6434_charAndString] Difference Between "char" and "String" (#13907) 2023-04-28 18:06:34 -05:00
Azhwani f1ac6f1857 BAEL-6352: Check if the First Letter of a String is a Number (#13883) 2023-04-29 00:13:35 +02:00
edizor 86e237a142 Update README.md
[skip ci]
2023-04-28 21:29:45 +08:00
edizor 1ad6fdca44 Update README.md
[skip ci]
2023-04-28 21:15:28 +08:00
edizor 6b2b4eb4cb Update README.md
[skip ci]
2023-04-28 21:02:28 +08:00
edizor d3328aa8a6 Update README.md
[skip ci]
2023-04-28 20:53:23 +08:00
edizor 51adee522f Update README.md
[skip ci]
2023-04-28 20:25:11 +08:00
edizor 403c4cf467 Update README.md
[skip ci]
2023-04-28 20:10:52 +08:00
Loredana Crusoveanu ba0f7855eb Merge pull request #13640 from pjfanning/patch-2
simplify StandardCharsets use
2023-04-28 11:02:57 +03:00
press0 bf1e9aa588 Merge branch 'eugenp:master' into master 2023-04-26 17:02:40 -05:00
Bogdan Cardoş c8cd042d64 BAEL-6079 Code examples from article (#13486)
* BAEL-6079 Code examples from article

* BAEL-6079 Code examples from article

* BAEL-6079 Code examples from article update

* BAEL-6079 Code examples from article update
2023-04-26 08:30:27 +02:00
Kai Yuan 178782aebf [BAEL-6442_Build-URL] create URL objects using apache httpclient & spring-web (#13892) 2023-04-24 19:35:42 -05:00
anuragkumawat 90f2d165bf JAVA-20496 Non-article code: rawtypes and sandbox packages (#13886)
* JAVA-14232 Dissolving core-java module completed
2023-04-24 10:40:47 +03:00
Kai Yuan b00b487b4c [BAEL-6371_char_frequence] Find the Most Frequent Characters in a String (#13877) 2023-04-23 20:46:39 -05:00
Kai Yuan d5b60345cf [BAEL-6353_After-regex-match] Getting the Text That Follows After the Regex Match in Java (#13839) 2023-04-22 17:25:06 -05:00
Loredana Crusoveanu 2852feab1c Merge pull request #13881 from eugenp/lor6-patch-2
Create README.md
2023-04-21 18:53:09 +03:00
Loredana Crusoveanu c63f0d1c08 Create README.md 2023-04-21 18:48:58 +03:00
Loredana Crusoveanu aa310ba299 Update README.md 2023-04-21 18:48:42 +03:00
Loredana Crusoveanu 9bace94aae Merge pull request #13815 from bhaskar16/JAVA-6173-parallel-stream-difference-change-location
[JAVA-6173] stream.parallelStream and Collections parallel stream differnces
2023-04-21 18:48:10 +03:00
Loredana Crusoveanu 977c18e59a Merge pull request #13879 from eugenp/lor6-patch-2
Update README.md
2023-04-21 18:44:58 +03:00
Loredana Crusoveanu 3706cc38c5 Update README.md 2023-04-21 18:40:28 +03:00
Loredana Crusoveanu 48d4f9ab07 Update README.md 2023-04-21 18:40:15 +03:00
Kai Yuan d19a53c2d3 [BAEL-6363_nextInt-vs-nextLine] Integer.parseInt(scanner.nextLine()) vs scanner.nextInt() in Java (#13858) 2023-04-20 17:41:34 -05:00
anuragkumawat fbc3b5920b JAVA-19119 Move article Java Money and the Currency API to core-java-lang-math-3 module (#13602)
* JAVA-19119 Move article Java Money and the Currency API to core-java-lang-math-3 module
2023-04-20 19:21:19 +03:00
anuragkumawat b7ea8e622d Java 19120 Code review changes (#13747)
* JAVA-19120 Move article Lambda Expression vs. Anonymous Inner Class to core-java-8-2 module

---------

Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
2023-04-20 18:40:19 +03:00
edizor 6cf91e7eca Update README.md
[skip ci]
2023-04-20 17:48:05 +08:00
edizor e77b3ae85a Update README.md
[skip ci]
2023-04-20 17:30:31 +08:00
edizor c17f95c27c Update README.md
[skip ci]
2023-04-20 17:28:12 +08:00
edizor 2dd966206c Update README.md
[skip ci]
2023-04-20 17:19:59 +08:00
edizor 67fa63242d Update README.md
[skip ci]
2023-04-20 17:17:22 +08:00
edizor 90b9b536ff Update README.md
[skip ci]
2023-04-20 17:13:37 +08:00
Loredana Crusoveanu b01a849724 Merge pull request #13842 from edizor/master
Update README
2023-04-18 13:31:26 +03:00
Eugene Kovko ae04ab2510 feat: BAEL-5947 External Debugging with JMXTerm (#13847)
* feat: BAEL-5947 External Debugging with JMXTerm

* fix: Removed a faulty test

* fix: Change Random to ThreadLocalRandom

* fix: Renamed a method

* fix: Formatting fix
2023-04-16 20:14:50 -07:00
Dhawal Kapil e243694f39 JAVA-20211 Renamed modules (#13827)
* JAVA-20211 Renamed modules

* JAVA-20211 Renamed modules
2023-04-15 10:01:14 +05:30
panos-kakos 5471db832c [JAVA-15018] Removed redundant apache httpclient dependency + added commons-codec (#13828) 2023-04-14 18:38:12 +05:30
edizor f34c3e993b Update README.md
[skip ci]
2023-04-14 16:35:28 +08:00
tgvLt 5c2126b626 Parse dates with multiple formats (#13348)
Code examples for "Parsing Date Strings with Varying Formats"
2023-04-13 23:22:30 -06:00
sam-gardner ae52ba3968 BAEL-5771 Add code for url query manipulation in Java (#13820) 2023-04-13 19:02:41 +02:00
Eugene Kovko c255eb13c1 BAEL-4174: Java Modularity and Unit Testing (#13805)
* feat: Added two main modules

* feat: Renamed test module

* feat: Added scripts for compiling library modules

* feat: Added scripts for running core module

* feat: Added scripts for running test module

* fix: Fixed module name

* fix: Removed unnecessary module imports

* feat: Added script for running tests with patch

* fix: Remove unnecessary module path imports

* feat: Script for simple classpath tests

* fix: Updated output directory

* fix: Updated output directory for test compilation

* fix: Replace maven repository with local lib folder

* feat: Add lib folder

* feat: Update the scripts

* fix: Remove pom from test module

* fix: Update core pom dependencies

* fix: Remove test module from a parent pom

* fix: Removed jars and added a script

* fix: Fix a script

* fix: Fix pom conflict
2023-04-13 07:51:31 -07:00
Alejamdro 1787041bd8 BAEL-6078 - Convert an Integer Value into 2-Digit Hex Value in Java (#13682) 2023-04-13 08:31:45 +05:30
kpentaris 88a97dc6c2 Highcpu (#13821)
* Add application file for BAEL-4496

* Move BAEL-4496 code from core-java-19 to core-java-perf-2
2023-04-12 19:30:33 +02:00
anuragkumawat cf5d158622 JAVA-19115 Create new core-java-properties sub module under core-java-modules (#13669)
* JAVA-19115 Create new core-java-properties sub module under core-java-modules
2023-04-12 17:17:52 +05:45
anuragkumawat ae3429db29 JAVA-19116 Create new core-java-compiler sub module under core-java-modules (#13658)
* JAVA-19116 Create new core-java-compiler sub module under core-java-modules
2023-04-12 16:46:55 +05:45
Alexandru Borza 67d6b1533b Generating Time Based UUIDs (#13668)
* time-based UUIDs

* review

* review
2023-04-11 19:21:36 +01:00
Loredana Crusoveanu e819357f00 Merge pull request #13812 from ulisseslima/bael-322-quickfix_echo-server
BAEL-322 - quick fix - echo server loop
2023-04-11 14:31:59 +03:00
anuragkumawat 197d85d705 JAVA-19117 Create new core-java-documentation sub module under core-java-modules (#13619)
* JAVA-19117 Create new core-java-documentation sub module under core-java-modules
https://team.baeldung.com/browse/JAVA-19117
2023-04-11 13:04:28 +05:45
Azhwani 068915df2f BAEL-6313: Supporting ImmutableMap.ofEntries in Guava (#13751) 2023-04-11 08:38:52 +02:00
Bhaskar 685a9495d1 [JAVA-6173] stream.parallelStream and Collections parallel stream differences 2023-04-10 23:49:37 +05:30
Ulisses Lima 3ec56eab46 check client still readable 2023-04-10 14:17:51 -03:00
press0 1628c013c6 Merge branch 'eugenp:master' into master 2023-04-10 10:39:14 -05:00
press0@gmail.com aeb0bd3bd7 PR 2023-04-10 10:37:33 -05:00
jsgrah-spring 23c1abe3f2 JAVA-18116 Review log statements for projects - Week 7 - 2023 (#13583)
JAVA-18116 Review log statements for projects - Week 7 - 2023 (#13583)
---------

Co-authored-by: jogra <joseph.sterling.grah@miles.no>
2023-04-10 14:35:40 +03:00
anuragkumawat 26790b429f JAVA-19118 Create new core-java-locale sub module under core-java-modules (#13612)
* JAVA-19118 Create new core-java-locale sub module under core-java-modules
2023-04-10 15:22:29 +05:45
Loredana Crusoveanu 4792107e96 Merge pull request #13774 from dkapil/task/JAVA-19536_cd
JAVA-19536 Fix formatting of pom.xmls
2023-04-10 10:23:06 +03:00
Deboshree d694564141 https://jira.baeldung.com/browse/BAEL-5837
pass default value as method param
2023-04-10 08:30:15 +05:30
Loredana Crusoveanu 44b59b1ace Merge pull request #13788 from edizor/master
Update README
2023-04-09 10:29:33 +03:00
edizor 6e4502955a Update README.md
[skip ci]
2023-04-08 00:07:32 +08:00
Anastasios Ioannidis 57ad9ed32e JAVA-18131 Adjust core-java-jvm PrintClassLoaders to sync with article (#13780) 2023-04-07 21:33:05 +05:30
edizor c07f3eb890 Update README.md
[skip ci]
2023-04-07 23:56:46 +08:00
edizor 19e050852c Update README.md
[skip ci]
2023-04-07 23:51:06 +08:00
Iniubong LA f21cf9951b arthurshur (#13737)
* 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

* String[] vs String...

* helper vs Utility classes

* helper vs utility classes code

* helper vs utility classes refactor

* utility vs helper class

* Helper vs utility

* helper vs utility classes

* refactor package name

* Revert "refactor package name"

This reverts commit d9464aa2de272b75ff7efe1c5ffb4de7fd4506e0.

* renamed package
2023-04-05 20:22:12 -05:00
Dhawal Kapil 7026b0abc9 JAVA-19536 Fix formatting of pom.xmls 2023-04-05 07:14:09 +05:30
Michael Olayemi 9c59017b4e I text (#13770)
* BAEL-6226 Calculate Pi Java Program

* BAEL-6226 Calculate Pi Java Program

* Calculate Pi Java Program
2023-04-05 06:44:45 +05:30