Commit Graph

3987 Commits

Author SHA1 Message Date
Kai Yuan 72b6c78646 [last-iteration] detect the last iteration (#15414)
* [last-iteration] detect the last iteration

* [last-iteration] add core-java-loops module
2023-12-15 17:47:36 -06:00
parthiv39731 b8bf044313 Merge remote-tracking branch 'origin/PR-7308' into PR-7308 2023-12-16 00:17:01 +05:30
parthiv39731 2a835a364a BAEL-7308, renamed methods 2023-12-16 00:16:22 +05:30
davidmartinezbarua b04c7afcf5 Merge pull request #15236 from anujgaud/ag/localdate-to-iso8601
LocalDate to ISO 8601 conversion
2023-12-15 14:17:57 -03:00
vunamtien 51f2ed495b BAEL-7106-compress-and-uncompress-bytes-2 (#15398) 2023-12-15 08:29:22 +01:00
Niket Agrawal e1dc061cd0 Merge remote-tracking branch 'upstream/master' into feature/BAEL-7062-GetIndex 2023-12-14 19:56:27 +05:30
Niket Agrawal 6948bc37e2 Review Comment 2023-12-14 19:53:46 +05:30
Amit Kumar 97b1af3175 added the code (#15272)
Co-authored-by: Amit Kumatr <amit.kumar@fyndna.com>
2023-12-14 07:19:58 +05:30
Mo Helmy fcc90e0382 This commit is related to BAEL-7341 (#15410)
This commit aims to add a test class "StringToCharListUnitTest" that suggests several ways to convert a string into a list of charachters.
2023-12-13 18:08:38 -05:00
Liam Williams 9d3f885141 Merge pull request #15389 from DiegoMarti2/master
baeldung-articles : BAEL-6892
2023-12-13 22:59:36 +00:00
DiegoMarti2 99e54378c3 Update OutputStreamToByteArrayUnitTest.java 2023-12-14 00:34:19 +02:00
Oscar Mauricio Forero Carrillo 2495d6fd62 BAEL-7226: Code for the improvements of the Percentages article. (#15352)
* BAEL-7226: Code for the improvements of the Percentages article.

* BAEL-7226: Rename Test to follow the convention
2023-12-13 21:22:10 +01:00
Graham Cox 3e8f48d06e BAEL-7346: Parse Java Source Code and Extract Methods (#15409) 2023-12-13 21:02:49 +01:00
Neetika23 523826cc0c Update Print2DArraysUnitTest.java 2023-12-13 23:30:11 +05:30
Neetika23 6162351819 Update Print2DArraysUnitTest.java 2023-12-13 23:29:46 +05:30
Neetika23 47bd8d25f9 renamed folder 2023-12-13 23:22:15 +05:30
Neetika23 e49112ce2b Update Print2DArraysUnitTest.java 2023-12-13 23:20:55 +05:30
parthiv39731 104d0de5f3 Merge branch 'eugenp:master' into PR-7308 2023-12-13 19:29:49 +05:30
DiegoMarti2 6e7e41cea4 Update OutputStreamToByteArrayUnitTest.java 2023-12-13 15:51:01 +02:00
Kai Yuan 0323a8168c [sum-intarray-recursion] two recursion approaches to summing int-array (#15385) 2023-12-12 21:38:31 -06:00
Dominique Plante 784cb2335c Merge pull request #15219 from maenolis/BAEL-7014
BAEL 7014
2023-12-11 19:45:03 -08:00
DiegoMarti2 dc98a1c302 Update core-java-modules/core-java-io-5/src/test/java/com/baeldung/outputstreamtobytearray/OutputStreamToByteArrayUnitTest.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-12-11 23:08:59 +02:00
DiegoMarti2 84bf4ee956 Update core-java-modules/core-java-io-5/src/test/java/com/baeldung/outputstreamtobytearray/OutputStreamToByteArrayUnitTest.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-12-11 23:08:50 +02:00
Neetika23 1f72aad0cc Rename Print2DArraysTest.java to Print2DArraysUnitTest.java 2023-12-11 23:18:44 +05:30
Neetika23 a8d04d122a Update Print2DArraysTest.java 2023-12-11 23:17:01 +05:30
DiegoMarti2 47baa5041b Update OutputStreamToByteArrayUnitTest.java 2023-12-11 19:36:34 +02:00
Neetika23 b0be5fcbaa Update Print2DArraysTest.java 2023-12-11 22:16:51 +05:30
DiegoMarti2 3ca05da859 Update and rename OutputStreamtoByteArrayUnitTest.java to OutputStreamToByteArrayUnitTest.java 2023-12-11 17:42:19 +02:00
DiegoMarti2 4e0e51139b Update OutputStreamtoByteArrayUnitTest.java 2023-12-11 17:25:25 +02:00
panos-kakos d8c3be530b [JAVA-26730] Upgraded io.projectreactor to latest version (#15234) 2023-12-11 08:58:51 +01:00
Neetika23 f2e2c0b38c Update Print2DArraysTest.java 2023-12-11 12:44:01 +05:30
Neetika23 f64c2b1689 Update pom.xml 2023-12-11 12:38:59 +05:30
timis1 d1661c2bc7 JAVA-28506 Cleanup un-committed or un-ignored artifacts - Week 49 - 2023 (#15382)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-12-10 22:41:16 +01:00
Neetika23 d8e96587b0 Update pom.xml 2023-12-11 00:51:06 +05:30
DiegoMarti2 b56eaf9b1b Update OutputStreamtoByteArrayUnitTest.java 2023-12-10 20:53:59 +02:00
Maiklins 3d685dc3b6 Merge branch 'master' into bael-7169-update-readme 2023-12-10 19:00:44 +01:00
mikr 2dba12e694 Update readme 2023-12-10 18:58:04 +01:00
Neetika23 9dcf7b212f Update pom.xml 2023-12-10 23:13:41 +05:30
Neetika23 7e8ccf1613 Update Print2DArraysTest.java 2023-12-10 23:12:46 +05:30
DiegoMarti2 94ddcd153d baeldung-articles : BAEL-6892
Commit to adding two mеthods to convert OutputStream to a byte array.
2023-12-10 19:40:01 +02:00
Maiklins a4f17e64f4 Merge pull request #15350 from Michaelin007/finalstatic
Final Static Variables in Java
2023-12-10 18:35:08 +01:00
michaelin007 c3fe804379 https://jira.baeldung.com/browse/BAEL-7169 2023-12-09 00:22:41 +00:00
Azhwani 8ff0949464 BAEL-6021: Handling NullPointerException in findFirst() When the First Element It Finds Is Null (#15341) 2023-12-08 21:22:40 +01:00
Neetika23 4280b17196 Delete core-java-modules/core-java-arrays-guides/src/main/java/com/baeldung/print2DArrays/Print2DArray.java 2023-12-08 12:08:15 +05:30
Neetika23 3210b24038 Update Print2DArraysTest.java 2023-12-08 12:07:28 +05:30
edizor d63b2b5a2a Update README.md
[skip ci]
2023-12-07 22:24:56 +08:00
edizor 3adfcb215c Update README.md
[skip ci]
2023-12-07 22:22:56 +08:00
edizor 300b524fde Create README.md
[skip ci]
2023-12-07 21:58:50 +08:00
edizor d8be8b3bb1 Update README.md
[skip ci]
2023-12-07 21:54:34 +08:00
edizor 183101cd4f Update README.md
[skip ci]
2023-12-07 21:51:10 +08:00
Mo Helmy 4e3e693f71 This commit is related to BAEL-6920 (#15371)
This commit aims to add a class "StringMaxLengthMain" showing the string max length.
2023-12-06 13:08:38 -08:00
MohamedHelmyKassab cab75d510a This commit is related to BAEL-7104 (#15368)
This commit aims to add a test class "SkipInputStreamUnitTest" that provide a test method that utilizes the skip() method.
2023-12-06 13:04:02 -08:00
Bipin kumar e144d0599b Java 28508 Fix formatting of POMs Modules A to C (#15359) 2023-12-06 18:17:52 +02:00
parthiv39731 8ad1043d55 BAEL-7308: Comparing One String with Multiple Values in One Expression in Java 2023-12-06 14:12:25 +05:30
Kasra Madadipouya a770f929be Merge pull request #15346 from anuragkumawat/JAVA-27357
JAVA-27357 Improve core-java-os build time
2023-12-06 09:07:47 +01:00
Kai Yuan 11c468f576 [bigdecimal-zero] bigdecimal zero vs constructor (#15355) 2023-12-05 20:18:19 -06:00
parthiv39731 3a8bae0c8e BAEL-7308: Comparing One String with Multiple Values in One Expression in Java 2023-12-05 23:20:42 +05:30
maenolis 9a003c4bf4 Unnecessary change revert. 2023-12-05 17:21:04 +02:00
anujgaud a662ef5fa6 Address review comments 2023-12-05 18:31:21 +05:30
Sameer d935c4fe23 BAEL 7138 Difference between String and StringBuffer in Java (#15351)
* string vs stringBuffer comparison

* BAEL-7138 Difference between String and StringBuffer in Java

---------

Co-authored-by: Sahil <sahilsriv05@gmail.com>
2023-12-04 22:34:33 -08:00
panos-kakos cf858a1493 Java 27490 (#15217)
* [JAVA-27490] Set java.version of JDK 9+ profile to JDK 17

* [JAVA-27490] Removed java.version from modules

* [JAVA-27490] Commented modules that are failing

* [JAVA-27490] Clean up

* [JAVA-27490] Clean up
2023-12-05 10:43:20 +05:30
parthiv39731 296e5498e8 BAEL-7308: Comparing One String with Multiple Values in One Expression in Java 2023-12-04 23:24:24 +05:30
anujgaud d660f1b8fe Append _ before then 2023-12-04 23:21:46 +05:30
anujgaud 89db04b79b Fix Package name 2023-12-04 23:17:06 +05:30
anujgaud b55f4db549 Fix package name 2023-12-04 23:15:47 +05:30
Niket Agrawal e8c97fd6e5 BAEL-7062 - Fetching Index from List using Streams (#14914)
* Primary Commit

* More Cases covered

* Indentation Corrections on POM

* Merge Conflict Fixed

* Updating as per Jira comments

* Correction

* Review Comment Implementation

* Indentation fixes

* Review Comment Implementation

* Method removal for Iterators

* Test Case Update

* Review Comment changes

* formatting change

* Updating map method

* Review comment update

* Review Comments

* Review Comments
2023-12-04 22:05:54 +05:30
Liam Williams 4b176f5549 Merge pull request #15314 from wynnteo/BAEL-7235
Unit Testing for CompletableFuture class
2023-12-04 16:06:50 +00:00
michaelin007 e6c2c4ab64 https://jira.baeldung.com/browse/BAEL-7169 2023-12-04 09:15:45 +00:00
uzma 596c10de0a [BAEL-7073] fix code style 2023-12-03 22:23:51 +00:00
timis1 e6501ada07 JAVA-26705 Upgrade lombok to latest version (#15305)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-12-03 21:19:12 +02:00
Alvin Austria 641ae1e973 Merge pull request #15335 from anuragkumawat/JAVA-26736
JAVA-26736 Upgrade jackson to latest version
2023-12-03 18:13:29 +01:00
Kai Yuan 7f1bfe6a87 [chk-double-is-int] check if doulbe is integer (#15312) 2023-12-03 10:55:52 -06:00
michaelin007 f763b57b7a Final Static Variables in Java 2023-12-03 11:09:55 +00:00
michaelin007 692f3b201a Final Static Variables in Java 2023-12-03 07:22:15 +00:00
edizor 0adcb51cc1 Update README.md
[skip ci]
2023-12-03 14:13:05 +08:00
edizor 5eba53af38 Update README.md
[skip ci]
2023-12-03 14:11:04 +08:00
edizor f53d917454 Update README.md
[skip ci]
2023-12-03 14:07:32 +08:00
edizor 3081399bd2 Update README.md
[skip ci]
2023-12-03 14:02:45 +08:00
edizor 2e27265f5a Update README.md
[skip ci]
2023-12-03 11:18:44 +08:00
edizor 894d87b029 Update README.md
[skip ci]
2023-12-03 11:13:25 +08:00
edizor d080d2f9f7 Update README.md
[skip ci]
2023-12-03 11:11:07 +08:00
Michael Pratt d8c84e0ea2 [BAEL-7170] Examples of colon character in Java (#15298) 2023-12-02 20:05:17 -06:00
parthiv39731 eb63164dc6 BAEL-7308: Comparing One String with Multiple Values in One Expression in Java 2023-12-02 21:38:58 +05:30
anuragkumawat c8973d8cf3 JAVA-27357 Improve core-java-os build time 2023-12-02 13:17:07 +05:30
Kasra Madadipouya dfb560b277 Merge pull request #15340 from harry9656/task/JAVA-26769
JAVA-26769: Update/Migrate to new version of Junit4
2023-12-01 22:17:29 +01:00
anuragkumawat 76a2939e7d JAVA-27645 Check article code matches github (#15323) 2023-12-01 22:14:25 +02:00
Singh Harpal ef76f798fb JAVA-26769: Update/Migrate to new version of Junit4 2023-12-01 18:01:46 +05:30
Mo Helmy 671957da9b This PR is related to BAEL-6315 (#15337)
* This commit is related to BAEL-6315

This commit aims to add two classes Contact and Person.

* This commit is related to BAEL-6315

This commit aims to add a test class DeserializationUnitTest.
2023-11-30 17:02:46 -08:00
MohamedHelmyKassab d7bb6bc0a7 This commit is related to BAEL-7113 (#15331)
This commit adds a new test class "RoundNumberToNearestMultipleUnitTest" that suggests multiplе mеthods for rounding up a numbеr to thе nеarеst multiplе of 5 in Java.
2023-11-30 16:59:17 -08:00
anuragkumawat e076a171ee JAVA-26736 Upgrade jackson to latest version 2023-11-30 22:54:02 +05:30
Maiklins 35b88b06af Update README.md 2023-11-30 16:10:46 +01:00
Maiklins df2a1a7501 Merge pull request #15285 from Michaelin007/unixtime
Retrieving Unix Time in Java
2023-11-30 16:05:58 +01:00
uzma 1c5e81fa34 [BAEL-7073] code for executor service 2023-11-30 01:31:02 +00:00
Loredana Crusoveanu 564de403df Merge pull request #15316 from eugenp/ulisseslima-patch-bael-7022
BAEL-7022 Why wait must be called in a synchronized block - quick fix
2023-11-29 10:57:03 +02:00
Alvin Austria 989c1cfe77 Merge pull request #15315 from panos-kakos/JAVA-26726
[JAVA-26726] Upgraded maven-javadoc-plugin to 3.6.2 version
2023-11-29 00:05:27 +01:00
anujgaud 677f4277f2 Add Unit test for commons Lang 2023-11-29 01:57:30 +05:30
anujgaud 118195d996 Add Apache Commons Lang support 2023-11-29 01:56:50 +05:30
anujgaud ecba15ffb7 Update tests 2023-11-29 01:51:58 +05:30
anujgaud fcc9c4c6ce Add milliseconds 2023-11-29 01:49:35 +05:30
Andrea Giulio Cerasoni b11a85adb1 Merge pull request #15279 from sk1418/negate-int
[negate-int] negate an int in java
2023-11-28 17:06:35 +00:00
Ulisses Lima 7b5225e8db BAEL-7022 Why wait must be called in a synchronized block - Changing Boolean to primitive
Based on a comment.
2023-11-28 12:14:50 -03:00
panos-kakos c67139e60b [JAVA-26727] Upgraded maven-javadoc-plugin to 3.6.2 version 2023-11-28 06:38:53 +02:00
SGWebFreelancer 93b63daa27 Fix test file name 2023-11-28 10:24:39 +08:00
SGWebFreelancer 50de40daa2 Unit Testing for CompletableFuture class 2023-11-28 10:19:27 +08:00
Sameer 6164b9c0ba string vs stringBuffer comparison (#15306)
Co-authored-by: Sahil <sahilsriv05@gmail.com>
2023-11-27 14:17:00 -08:00
MohamedHelmyKassab 5d6b5bf965 This commit is related to BAEL-7254 (#15299)
This commit aims to add a new test class "ByteToCharArrayUnitTest" that validates the conversion process of a Byte array into a Char array.
2023-11-26 19:52:14 -08:00
Bhaskar Ghosh Dastidar d69a3ac6bd [BAEL-6787] Increment map value benchmark - JMH (#15268)
* [BAEL-6787] jmh class added

* [BAEL-6787] jmh pom

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-11-26 19:43:04 -08:00
Liam Williams da3f32c737 Merge pull request #15106 from hangga/generate-unique-long
BAEL-6430 : Generate unique long using UUID | Hangga Aji Sayekti
2023-11-27 01:03:23 +00:00
Kai Yuan 62cc5adfbb [negate-int] add an empty line 2023-11-26 20:59:53 +01:00
Niket Agrawal 7b83abb7ae Review Comments 2023-11-26 23:51:38 +05:30
Kai Yuan 0b2981b94e [negate-int] using logger instead of sys.print.out 2023-11-26 19:10:19 +01:00
davidmartinezbarua 951dcdaee8 Merge pull request #15169 from sk1418/map-sort-by-value
[map-sort-by-value] sort map by value
2023-11-26 13:13:48 -03:00
Kasra Madadipouya 9af7dad83d Merge pull request #15282 from harry9656/task/JAVA-26771
JAVA-26771: Update liquibase-core and liquibase-maven-plugin to version 4.25.0
2023-11-25 19:11:29 +01:00
Loredana Crusoveanu d560084f30 Merge pull request #15288 from edizor/master
Update README
2023-11-25 17:49:52 +02:00
Kasra Madadipouya 33e3fc580a Merge pull request #15275 from harry9656/task/JAVA-26530
JAVA-26530: Update the RectangleOverlap adding a method without border checks.
2023-11-25 14:08:58 +01:00
michaelin007 fa272d3395 Retrieving Unix Time in Java 2023-11-25 05:25:47 +00:00
Graham Cox f4c35c055c BAEL-7218: Inter-Process Communication Methods in Java (#15286) 2023-11-24 22:17:18 +01:00
MohamedHelmyKassab b80ceb7ceb This PR is related to BAEL-7188 (#15271)
* Update pom.xml

Adding core-java-swing

* This commit is related to BAEL-7188

This commit aims to add a new module named "core-java-swing".
2023-11-24 08:45:14 -08:00
Bipin kumar 789ecf4581 Java 26716 Upgrade flying-saucer-pdf-openpdf, jsoup, openhtmltopdf (#15263) 2023-11-24 18:33:35 +02:00
edizor f52997ad42 Update README.md
[skip ci]
2023-11-24 21:53:03 +08:00
edizor 9b63e853fd Update README.md
[skip ci]
2023-11-24 21:40:18 +08:00
edizor a4c30e423d Update README.md
[skip ci]
2023-11-24 21:35:59 +08:00
edizor 8b481ed4d4 Update README.md
[skip ci]
2023-11-24 21:27:11 +08:00
edizor 6ced5e2c2f Update README.md
[skip ci]
2023-11-24 21:22:32 +08:00
mikr 33c1b23627 Update readme 2023-11-24 14:20:26 +01:00
edizor 4e28968b06 Update README.md
[skip ci]
2023-11-24 21:12:43 +08:00
Maiklins 5e9bf11102 Merge pull request #15154 from mcasari/master
BAEL-6600 - limit max size by LinkedHashMap and custom HashMap
2023-11-24 14:05:06 +01:00
michaelin007 c519d2be47 https://jira.baeldung.com/browse/BAEL-7268 2023-11-24 09:36:25 +00:00
Liam Williams b6dc257c80 Merge pull request #15113 from danielmcnally285/danielmcnally285_return_first_non_null
BAEL-7010 - return first non null
2023-11-23 22:29:58 +00:00
Harpal Singh 4f960b6579 JAVA-26771: Fix test core-java-string-operations-7 2023-11-23 21:53:14 +01:00
Harpal Singh 60e843aa61 JAVA-26771: Update core-java-string-operations-7 liquibase-core to 4.25.0 2023-11-23 20:59:19 +01:00
Neetika23 990a4812dc Create Print2DArraysTest.java 2023-11-24 00:31:59 +05:30
Neetika23 d64976dff4 Update Print2DArray.java 2023-11-24 00:28:48 +05:30
Neetika23 6b8040ffff Update Print2DArray.java 2023-11-23 23:00:57 +05:30
Niket Agrawal 39f5de4e30 Review Comments 2023-11-23 20:54:11 +05:30
Kai Yuan 81fe96721a [negate-int] negate an int in java 2023-11-23 13:03:09 +01:00
Harry9656 79e9818bee JAVA-26530: Update the RectangleOverlap adding a method without borders check. 2023-11-23 06:21:19 +01:00
macasari b64a40f6f4 BAEL-6600 - fix various reported issues 2023-11-22 10:40:38 +01:00
Mario Angelo Casari b38867d054 Merge remote-tracking branch 'upstream/master' 2023-11-22 09:40:19 +01:00
Kai Yuan 76d2612959 [if-class-is-enum] check class is enum (#15235)
* [if-class-is-enum] check class is enum

* [if-class-is-enum] move to new module
2023-11-21 21:38:37 -06:00
Kasra Madadipouya 7aaeeade69 Merge pull request #15259 from harry9656/task/JAVA-26732
JAVA-26732: Update the equalsverifier dependency
2023-11-21 19:29:52 +01:00
Pedro Lopes ea7466682b BAEL-7178: StringUtils.isBlank() vs String.isEmpty() (#15213)
* adding first test cases

* final code
2023-11-21 15:39:23 +01:00
Neetika23 b62e4d4baf Update Print2DArray.java 2023-11-21 17:35:23 +05:30
Neetika23 b8c875adbd Create Print2DArray.java 2023-11-21 16:31:48 +05:30
Bipin kumar 923556ea27 Java 27246 (#15255) 2023-11-21 12:52:50 +02:00
Harry9656 9c995714f7 JAVA-26732: Update the equalsverifier dependency 2023-11-21 04:47:17 +01:00
Ulisses Lima 85c4c1450b BAEL-2499 - Write to CSV in Java
Closes #15250

Adding a null check.
2023-11-20 19:43:54 -03:00
ACHRAF TAITAI 111dcccb92 Bael 7060 (#15247)
* BAEL-7060: Converting String to ByteBuffer

* BAEL-7060: Converting String to ByteBuffer (format code)
2023-11-20 22:28:10 +01:00
Vini d0d42269f0 Merge pull request #15253 from constantinurs/keystore-alias-name
BAEL-6014: Check certificate name and alias in keystore file
2023-11-20 21:40:08 +01:00
Constantin 0bf89cfe37 BAEL-6014: Fix formatting 2023-11-20 22:28:07 +02:00
Constantin 34754e74ad BAEL-6014: Address PR comments 2023-11-20 22:12:10 +02:00
Constantin ee57392b4f BAEL-6014: Remove newline 2023-11-20 20:12:51 +02:00
Constantin ec1fde9dc1 BAEL-6014: Check certificate name and alias in keystore file 2023-11-20 19:53:44 +02:00
MohamedHelmyKassab a3e0639a75 This commit is related to the article BAEL-7232 (#15252)
This commit adds a new test class "TimeToLocalDateTimeUnitTest" that shows how to convert a long timestamp into a LocalDateTime object.
2023-11-20 09:18:13 -08:00
panos-kakos c10a404f57 [JAVA-26734] Upgraded aspectjrt, aspectjweaver to latest version (#15140) 2023-11-20 12:58:10 +02:00
timis1 40315beb0d JAVA-26733 Upgrade wiremock to the latest version (#15206) 2023-11-20 11:44:00 +02:00
Bhaskar Ghosh Dastidar 684a14ce5f [BAEL-6787] increment value of a map (#15243)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-11-19 11:36:51 -08:00
@hangga 7bc08e8e74 [Update] remove hashCode, add nano & secure 2023-11-19 13:43:34 +07:00
danielmcnally285 1c10f4f35b change 2 spaces for fluent apis to 4 2023-11-18 20:25:43 +00:00
danielmcnally285 9784f5ec51 Merge branch 'eugenp:master' into danielmcnally285_return_first_non_null 2023-11-18 19:59:52 +00:00
edizor cf51f27dfc Update README.md 2023-11-18 20:48:36 +08:00
edizor 607fc54bf0 Update README.md 2023-11-18 20:48:00 +08:00
edizor b62d0436d4 Update README.md
[skip ci]
2023-11-18 19:33:12 +08:00
edizor cf421052d9 Update README.md
[skip ci]
2023-11-18 19:30:06 +08:00
edizor 2d7f1c60a7 Update README.md
[skip ci]
2023-11-18 19:26:37 +08:00
edizor ccba711e86 Update README.md
[skip ci]
2023-11-18 19:24:21 +08:00
edizor 3a3459f2b8 Update README.md
[skip ci]
2023-11-18 19:22:32 +08:00
edizor f589231fde Update README.md
[skip ci]
2023-11-18 19:14:42 +08:00
edizor 8459887d19 Update README.md
[skip ci]
2023-11-18 19:10:58 +08:00
edizor de92bcb45d Update README.md
[skip ci]
2023-11-18 19:06:22 +08:00
edizor c921fdcc19 Update README.md
[skip ci]
2023-11-18 18:59:00 +08:00
edizor a4ac49de81 Update README.md
[skip ci]
2023-11-18 18:56:47 +08:00
edizor e264651cfb Update README.md
[skip ci]
2023-11-18 18:53:19 +08:00
Alvin Austria e7574bdb90 Merge pull request #15204 from panos-kakos/JAVA-26714
[JAVA-26714]
2023-11-18 09:00:16 +01:00
Hangga Aji Sayekti 10b8f0370c Merge pull request #4 from hangga/time-field
simplify unit tests
2023-11-18 14:22:52 +07:00
@hangga 213fb362a0 simplyfiying test 2023-11-18 14:17:19 +07:00
@hangga 0c8b5bd210 retry with colision 2023-11-18 06:09:14 +07:00
maenolis 62c3d6bf32 Moved to core-java-function module
Added concurrent tests
2023-11-17 22:44:42 +02:00
anujgaud dd89145547 Add unit test for JodaTime method 2023-11-18 00:59:55 +05:30
anujgaud 293322e3a3 Add Joda library support 2023-11-18 00:58:52 +05:30
anujgaud eaf6ce5fbe Add unit tests for LocalDate to ISO 8601 2023-11-18 00:27:03 +05:30
anujgaud 52c96522c1 Add Code for converting LocalDate to ISO 8601 2023-11-18 00:24:38 +05:30
Kasra Madadipouya 4e24430ad2 Merge pull request #15231 from harry9656/JAVA-27338
JAVA-27338: Fix VehicleUnitTest
2023-11-17 19:46:57 +01:00
Mo Helmy 9d441e11b8 This commit is related to the article BAEL-7172 (#15232)
This commit aims to add two classes that provide insights about the time complexity of Collections.sort().
2023-11-16 15:47:49 -08:00
MohamedHelmyKassab 290147ff08 This PR is related to BAEL-7181 (#15230)
* Update TimestampToLongUnitTest.java

* Update TimestampToLong.java
2023-11-16 14:27:43 -08:00
Ulisses Lima 0b229a9af4 draft 1 (#15222) 2023-11-16 13:35:11 -08:00
Harry9656 58db4f7a09 JAVA-27338: Fix VehicleUnitTest 2023-11-16 20:22:43 +01:00
Niket Agrawal aa357f8b64 Review comment update 2023-11-16 14:43:14 +05:30
macasari 5942a934cf BAEL-6600: add further test cases 2023-11-15 23:53:42 +01:00
Mario Angelo Casari 10152801a5 Merge remote-tracking branch 'upstream/master' 2023-11-15 23:46:36 +01:00
ACHRAF TAITAI 0838279c6a BAEL-7092: How to get the size of a file in MB, KB & GB in java (#15117)
* BAEL-7092: How to get the size of a file in MB, KB & GB in java

* Update JavaFileSizeUnitTest.java

* BAEL-7092: How to get the size of a file in MB, KB & GB in java

---------

Co-authored-by: Grzegorz Piwowarek <gpiwowarek@gmail.com>
2023-11-15 22:16:28 +01:00
Wynn Teo 5787183a36 BAEL-7109 - added code to demostrate how to get max date in java (#14944)
* BAEL-7109 - added code to demostrate how to get max date in java

* BAEL-7109 Fix test case typo

* BAEL-7109 Fix test case file name

* Fix the test method

* Fix the test method

* Fix the test method

* Remove public

* add new line
2023-11-15 20:25:03 +05:30
Michael Olayemi de50130c74 Create Table using ASCII in a Console in Java (#15158) 2023-11-15 19:00:00 +05:30
maenolis 2ed78462c8 Code formatting 2023-11-15 08:36:28 +02:00
maenolis 7135047ba1 Initial commit for lazy lambda article 2023-11-15 08:33:33 +02:00
mcasari 8a31837a3e BAEL-6600: fix flaws in the logic of put method 2023-11-14 23:22:44 +01:00
mcasari 2f9407e765 Merge remote-tracking branch 'upstream/master' 2023-11-14 23:19:44 +01:00
Azhwani 2133e9b5db BAEL-7176: How to avoid NoSuchElementException with Stream (#15098) 2023-11-14 22:48:17 +01:00
Kai Yuan 88926bba03 [map-sort-by-value] add missing diamonds 2023-11-14 22:21:47 +01:00
vunamtien c6dbdeaaa5 BAEL-7106-compress-and-uncompress-bytes (#15216) 2023-11-14 12:41:43 +01:00
MohamedHelmyKassab c5af2f3f3b This PR is related to BAEL-7181 (#15192)
* This commit is related to BAEL-7181

This commit aims to add a class "TimestampToLong.java" that provides several approaches to convert timestamp string into long.

* This commit is related to BAEL-7181

This commit aims to add a test class "TimestampToLongUnitTest.java" that provides several approaches to convert timestamp string into long.
2023-11-13 21:53:16 -08:00
Mikhail Polivakha 8532499dcc BAEL-7187 implemented (#15208)
* BAEL-7139 implemented

* BAEL-7187 implemented
2023-11-13 21:40:27 -08:00
mcasari 9973d9aec3 BAEL-6600: minor fixing 2023-11-13 23:51:31 +01:00
mcasari 2ae8f45bc2 Merge remote-tracking branch 'upstream/master' 2023-11-13 23:39:46 +01:00
mcasari 5ecbb1b7c8 BAEL-6600: override put instead of additional method 2023-11-13 23:39:30 +01:00
Kasra Madadipouya 5d4fd5d50b Merge pull request #15195 from panos-kakos/JAVA-26774
[JAVA-26774] Upgraded mapstruct library to latest version
2023-11-13 23:06:51 +01:00
Kasra Madadipouya cdc1d8001f Merge pull request #15202 from panos-kakos/JAVA-26739
[JAVA-26739] Upgraded json-path to latest version
2023-11-13 22:44:57 +01:00
panos-kakos 21eb70547f [JAVA-26719] Upgraded joda-time to latest version (#15189) 2023-11-13 12:00:45 +02:00
panos-kakos 7d0c744c7c [JAVA-26433] Formatting (#15179) 2023-11-13 11:27:36 +02:00
panos-kakos 0415bc0ec7 [JAVA-26714] 2023-11-13 09:48:20 +02:00
panos-kakos 7465581d60 [JAVA-26714] 2023-11-13 09:44:21 +02:00
davidmartinezbarua 5e681a24dd Merge pull request #15124 from michael-pratt/BAEL-7074
BAEL-7074: Static variable synchronization techniques
2023-11-12 18:15:09 -03:00
panos-kakos 39c2f49171 [JAVA-26714] Upgraded guava to latest version 2023-11-12 18:10:31 +02:00
Michael Pratt 573df300b0 Fix indentation issues 2023-11-12 09:00:56 -07:00
panos-kakos 2c7a0d05e2 [JAVA-26714] Clean up of commons-lang3 2023-11-12 18:00:46 +02:00
Lucian Snare c0a9532c64 BAEL-6790: Write and Read file with HashMap (#15087)
* Add examples for reading and writing a HashMap from a file

* Add test for gson
2023-11-12 07:59:00 -08:00
panos-kakos fe7f89a08f [JAVA-26714] Upgraded bouncycastle to latest version 2023-11-12 17:46:52 +02:00
panos-kakos e6cb1a2e43 [JAVA-26714] Upgraded commons-codec to latest version 2023-11-12 17:34:55 +02:00
panos-kakos ec251f847b [JAVA-26739] Upgraded json-path to latest version 2023-11-12 16:35:46 +02:00
@hangga b8bcd18623 pull master 2023-11-12 18:25:01 +07:00
@hangga ca62636fed pull from master 2023-11-12 18:23:58 +07:00
panos-kakos 47f7b926e6 [JAVA-26774] Upgraded mapstruct library to latest version 2023-11-12 07:32:39 +02:00
danielmcnally285 b31e6984ad rename test methods 2023-11-11 19:22:20 +00:00
danielmcnally285 2581618deb indent fluent apis 2 spaces 2023-11-11 19:17:28 +00:00
danielmcnally285 c03477e2bd rename returning first non empty optional test method 2023-11-11 19:14:58 +00:00
Loredana Crusoveanu d170b2e036 Merge pull request #15181 from edizor/master
Update README
2023-11-11 18:50:53 +02:00
panos-kakos b87609265d [JAVA-26709] Upgraded modelmapper to latest version 2023-11-11 08:29:09 +02:00
edizor a6bed18176 Update README.md
[skip ci]
2023-11-11 08:31:26 +08:00
edizor 12fa2a3961 Update README.md
[skip ci]
2023-11-11 08:27:08 +08:00
edizor c523d5b201 Update README.md
[skip ci]
2023-11-11 08:21:22 +08:00
edizor 3d8d1ad904 Update README.md
[skip ci]
2023-11-11 08:16:39 +08:00
edizor 4e5f7adc81 Update README.md
[skip ci]
2023-11-11 08:10:55 +08:00
edizor 2c26effb64 Update README.md
[skip ci]
2023-11-11 07:49:53 +08:00
edizor bb31624bb4 Update README.md
[skip ci]
2023-11-11 07:43:24 +08:00
edizor 75828dbf49 Update README.md
[skip ci]
2023-11-11 07:29:30 +08:00
panos-kakos 7c1065b494 [JAVA-26439] Moved code related to "Guide to Stream.reduce()" to ebook module (#15170) 2023-11-10 16:15:28 +02:00
edizor 4c87707c90 Update README.md
[skip ci]
2023-11-10 21:16:16 +08:00
edizor 2e330d6f34 Update README.md
[skip ci]
2023-11-10 21:12:41 +08:00
edizor c7883a6d5c Update README.md
[skip ci]
2023-11-10 21:10:20 +08:00
edizor 277001771c Update README.md
[skip ci]
2023-11-10 21:06:56 +08:00
edizor a2ad229e4e Update README.md
[skip ci]
2023-11-10 19:37:26 +08:00
edizor ac0fa6ff78 Update README.md
[skip ci]
2023-11-10 18:46:51 +08:00
Kai Yuan faa689f018 [map-sort-by-value] sort map by value 2023-11-10 08:15:20 +01:00
Bogdan Cardoş 63679af8ca BAEL-6874 update test code for article (#15164)
* BAEL-6819 convert from int to Long in Java

* BAEL-6819 update package name

* BAEL-6874 test code for article

* BAEL-6874 rename test class

* BAEL-6874 update test code for article

* BAEL-6874 update test code for article
2023-11-09 14:01:10 -08:00
psevestre 0b0db24ebb [BAEL-7044] Shared Memory Between Two JVMs (#15162)
* [BAEL-4849] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Article code

* [BAEL-4968] Remove extra comments

* [BAEL-5258] Article Code

* [BAEL-2765] PKCE Support for Secret Clients

* [BAEL-5698] Article code

* [BAEL-5698] Article code

* [BAEL-5905] Initial code

* [BAEL-5905] Article code

* [BAEL-5905] Relocate article code to new module

* [BAEL-6275] PostgreSQL NOTIFY/LISTEN

* [BAEL-6275] Minor correction

* BAEL-6138

* [BAEL-6138] WIP - LiveTest

* [BAEL-6138] Tutorial Code

* [BAEL-6138] Tutorial Code

* [BAEL-6694] Article Code

* [BAEL-7044] Tutorial code

---------

Co-authored-by: Philippe Sevestre <psevestre@gmail.com>
2023-11-09 13:56:11 -08:00
Paul Greer 499ed4bbbd BAEL-6943: Difference between String and StringBuffer in Java (#14815)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete core-java-modules/core-java-lang-6/src/main/java/com/baeldung/intposneg directory

* Delete core-java-modules/core-java-lang-6/src/test/java/com/baeldung/intposneg directory

* Add files via upload

* Delete core-java-modules/core-java-numbers-conversions/src/main/java/com/baeldung/stringtoint/intposneg directory

* Add files via upload

* Add files via upload

* Delete core-java-modules/core-java-numbers-conversions/src/main/java/com/baeldung/intposneg directory

* Delete core-java-modules/core-java-numbers-conversions/src/test/java/com/baeldung/intposneg directory

* Add files via upload

* Add files via upload

* Delete core-java-modules/core-java-lang-6/src/main/java/com/baeldung/diffstringstringbuffer directory

* Delete core-java-modules/core-java-lang-6/src/test/java/com/baeldung/diffstringstringbuffer directory

* Delete core-java-modules/core-java-string-apis-2/src/main/java/com/baeldung/diffstringstringbuffer directory

* Delete core-java-modules/core-java-string-apis-2/src/test/java/com/baeldung/diffstringstringbuffer directory

* Add files via upload

* Add files via upload
2023-11-09 13:52:12 -08:00
MohamedHelmyKassab 7e81d666c9 This commit related to BAEL-7103 (#15160)
This commit aims to add a test class named "ConvertingHashSetToArrayUnitTest" that provides test methods to convert HashSet to an array.
2023-11-08 14:08:33 -08:00
Kasra Madadipouya 7bc73cd2c4 Merge pull request #15129 from anuragkumawat/JAVA-27176
JAVA-27176 Upgrade hibernate validator version in core-java-string-operations-2 module
2023-11-08 21:51:38 +01:00
Niket Agrawal ab70c92934 Updating map method 2023-11-08 22:44:29 +05:30
Bipin kumar 7b6ba0e030 JAVA-26729:Changes made for upgrade commons-validator to latest version (#15159) 2023-11-08 12:24:10 +02:00
timis1 c7e2dc2a6e JAVA-27248 Align module names, folder names and artifact id - Week 44 - 2023 (conti-1) (#15147)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-11-08 12:06:28 +02:00
Azhwani 362610ca58 BAEL-6776: Convert File to Byte Array in Java (#15123) 2023-11-07 19:21:46 +01:00
Niket Agrawal c7bd43e881 formatting change 2023-11-07 23:14:34 +05:30
Niket Agrawal 2628fe1eb0 Review Comment changes 2023-11-07 23:13:46 +05:30
Bipin kumar 19e70b20a4 JAVA-26498: Changes made for adding missed module core-java-collectio… (#15071)
/core-java-modules/core-java-collections-conversions-2 
/core-java-modules/core-java-collections-conversions-3 
/core-java-modules/core-java-concurrency-advanced-5
2023-11-07 12:28:16 +02:00
Bipin kumar f1424a62ef JAVA-26556: Changes made for Adding missed modules (#15105)
/core-java-modules/core-java-numbers-conversions
/core-java-modules/core-java-datetime-conversion
/di-modules/avaje/persistence-modules/spring-boot-persistence-4 
/spring-boot-modules/spring-boot-security-2 
/spring-boot-modules/spring-boot-ssl-bundles 
/spring-boot-modules/spring-boot-telegram
2023-11-07 12:22:43 +02:00
Loredana Crusoveanu 2fc5ad953c Merge pull request #15153 from eugenp/ulisseslima-patch-1
BAEL-6481 - Remove `isInterrupted()` check
2023-11-07 09:48:06 +02:00
Eugene Kovko 14070ec048 BAEL-6139: Added ThreadMonitorInfo (#15094)
* BAEL-6139: Added ThreadMonitorInfo

* BAEL-6139: Move ThreadMonitorInfo

* BAEL-6139: Unsafe using park() and unpark(Thread)
2023-11-07 09:20:48 +05:30
Mateusz Szablak 9e995c1e41 BAEL-6489 Time Conversions Using TimeUnit (#14390) 2023-11-06 21:38:36 +00:00
danielmcnally285 392928ccfa Remove unnecessary spy annotation and make unit tests package private 2023-11-06 20:59:54 +00:00
Bogdan Cardoş 4ef6b9039f BAEL-6874 update test code for article (#15155)
* BAEL-6819 convert from int to Long in Java

* BAEL-6819 update package name

* BAEL-6874 test code for article

* BAEL-6874 rename test class

* BAEL-6874 update test code for article
2023-11-06 12:47:45 -08:00
mcasari e0c7ddb52e BAEL-6600 - limit max size by LinkedHashMap and custom HashMap 2023-11-06 20:38:18 +01:00
Ulisses Lima 03c615201f Update InterruptThread.java
Based on a comment:

Section 6 should be headlined with “Using System.exit()” since that’s what stops code execution, not the boolean variable (this is just a means to decide that execution should be stopped, like the negative array element in section 4.

Also it’s unclear why we’d need the “if (isInterrupted())” statement in the while loop of the 8th section: how should isInterrupted() be true one line after we’ve checked in the while loop header that it’s false? Admittedly there’s a little chance that the interrupt status changed between these 2 lines, but this if statement would make much more sense somewhere in the business logic code where more time has passed since the evaluation of “while (!isInterrupted())”… and if that business code doesn’t have that complexity/length, one should omit this if statement altogether, since it creates more confusion than it helps for timely reaction on an interruption.
2023-11-06 16:26:35 -03:00
MohamedHelmyKassab 4d7e5eb5c9 This commit is related to the article BAEL-6988 (#15149)
This commit aims to add a test class "HexToIntConversionUnitTest.java" that provides several ways to convert Hex string into int.
2023-11-06 09:40:42 -08:00
Mo Helmy 946f849767 Update StreamToMapAndMultiMapUnitTest.java (#15146) 2023-11-06 09:34:00 -08:00
davidmartinezbarua d847f0d335 Merge pull request #15122 from parthiv39731/PR-7177
BAEL-7177
2023-11-06 14:10:53 -03:00
davidmartinezbarua 68cfb27b6e Merge pull request #15125 from sam-gardner/BAEL-7105-Add-code-for-StringBuilder-comparison
BAEL-7105 Add code for StringBuilder comparison
2023-11-06 12:53:46 -03:00
parthiv39731 fb2f90d88f BAEL-7177
review comments implemented.
2023-11-06 19:08:47 +05:30
Loredana Crusoveanu f3f39c2e56 Merge pull request #15133 from edizor/master
UPDATE README
2023-11-06 09:31:52 +02:00
Kai Yuan 63953b74f3 Nth substring (#15120)
* [nth-substring] nth substring in a string

* [nth-substring] find n-th substring
2023-11-05 19:26:25 -06:00
danielmcnally285 a8e298e389 Modify Optional value to be more descriptive 2023-11-05 20:11:49 +00:00
danielmcnally285 8f01f45455 Modify givenTwoObjects_whenUsingGoogleGuavaMoreObjects_thenReturnFirstNonNull() unit test to have two extra local variables for readability 2023-11-05 12:06:33 +00:00
danielmcnally285 88a92d399c Add LazyEvaluate class 2023-11-05 11:43:32 +00:00
danielmcnally285 a33bdf8a03 Use String over Object for unit tests 2023-11-05 11:37:03 +00:00
danielmcnally285 9368968cea Merge branch 'eugenp:master' into danielmcnally285_return_first_non_null 2023-11-05 11:32:42 +00:00
edizor 686196c040 Update README.md
[skip ci]
2023-11-05 13:16:48 +08:00
edizor 67d1902524 Update README.md
[skip ci]
2023-11-05 13:02:33 +08:00
edizor 252696e2b3 Update README.md
[skip ci]
2023-11-05 12:58:15 +08:00
edizor 88a874082d Update README.md
[skip ci]
2023-11-05 12:49:07 +08:00
Mo Helmy 89744aff6c This commit is related to BAEL-7161 (#15132)
This commit aims to add a test class "StreamToMapAndMultiMapUnitTest" that provides several approaches to convert Java stream to Map or MultiMap.
2023-11-04 20:06:13 -07:00
panos-kakos d9fd96773e [JAVA-26720] Upgraded opencsv to 5.8 version (#15126) 2023-11-04 15:23:42 +02:00
panos-kakos 1baaca3e37 [JAVA-26432] Update "Introduction to Java 8 Streams" article Clean up (#15038) 2023-11-04 12:01:25 +02:00
anuragkumawat df78df7a81 JAVA-26394 Move java-native to core-java modules (#15092) 2023-11-04 11:23:37 +02:00
@hangga 32940c41e4 update time test 2023-11-04 15:28:49 +07:00
anuragkumawat 049770733c JAVA-27176 Upgrade hibernate validator version in core-java-string-operations-2 module 2023-11-04 12:24:35 +05:30
vaibhav007jain 22ad2b88a8 Bael-7075: Initial Commit (#15053)
* Create VectorOperations.java

BAEL-7075: Initial Commit

* BAEL-7075: Create VectorOperationsUnitTest.java

* Delete core-java-modules/core-java-collections-5/src/main/java/com/baeldung/vectors/VectorOperations.java

* Update VectorOperationsUnitTest.java

* Update VectorOperationsUnitTest.java - Added one more test case
2023-11-04 11:02:23 +05:30
Michael Pratt 159461815d New example and unit test 2023-11-03 15:31:25 -06:00
Michael Pratt 1aa2f849f4 Revert 2 changes unrelated to BAEL-7074 2023-11-03 13:10:24 -06:00
Sam Gardner 3d561e24df BAEL-7105 Add code for StringBuilder comparison 2023-11-03 12:43:44 +00:00
Hangga Aji Sayekti b7bc968da2 Update core-java-modules/core-java-uuid/src/main/java/com/baeldung/uuid/UUIDPositiveLongGenerator.java
Oh yeah..

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-03 17:13:48 +07:00
@hangga 899700f27e [Update] add time field 2023-11-03 15:45:12 +07:00
Pedro Lopes 6f618f5cf9 BAEL-7128: Optional as a Record Parameter in Java (#15114)
* record class and test

* renaming test
2023-11-03 09:50:47 +05:30
Michael Olayemi 4c06d8e9f9 How to Document Generic Type Parameter (#15108)
* How to Documeny Generic Type Parameters

* How to Documeny Generic Type Parameters
2023-11-03 09:45:06 +05:30
Michael Pratt 38f30e733f [BAEL-7074] Update tests 2023-11-02 19:23:43 -06:00
Michael Pratt 02e02f928f [BAEL-7074] Synchronization for static data examples 2023-11-02 17:47:02 -06:00
parthiv39731 aa27014425 BAEL-7177
Modifying Objects within Stream while iterating
2023-11-02 23:12:45 +05:30
parthiv39731 a5d58617e2 BAEL-7177
Modifying Objects within Stream while iterating
2023-11-02 20:21:59 +05:30
@hangga 39bc0b9eaa logback 2023-11-02 21:08:06 +07:00
Hangga Aji Sayekti 18220b12af Update core-java-modules/core-java-uuid/src/test/resources/logback.xml
Ok..

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 21:05:07 +07:00
@hangga 7cc4de47ef remove some space 2023-11-02 16:55:49 +07:00
@hangga 0f222559dc simplyfying log 2023-11-02 14:16:43 +07:00
@hangga 69d17b634d N to NUMBER_OF_CHECKS 2023-11-02 11:25:19 +07:00
Palaniappan Arunachalam 57840bb083 BAEL-4200: JNDI - What Is java:comp/env? (#15081) 2023-11-02 09:28:54 +05:30
@hangga 8f1a091a43 update : add space after () 2023-11-02 09:42:31 +07:00
Hangga Aji Sayekti a5d0a15419 Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
Simplify the throws clause

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:40:20 +07:00
Hangga Aji Sayekti f25f06795b Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
Simplify the throws clause

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:40:04 +07:00
Hangga Aji Sayekti 9fe75192ec Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
assert that the value is positive

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:39:43 +07:00
Hangga Aji Sayekti b946f580f4 Update core-java-modules/core-java-uuid/src/main/java/com/baeldung/uuid/UUIDPositiveLongGenerator.java
Minor style issue: put a space between () and { in each of these methods

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-02 09:39:17 +07:00
Kai Yuan d8fb8b381f [linkedhashmap-first-last] get first and last entry from LinkedHashMap (#15066)
* [linkedhashmap-first-last] get first and last entry from LinkedHashMap

* [linkedhashmap-first-last] add the stream approach
2023-11-01 20:28:53 -05:00
Maiklins 5fdce9f12a Merge pull request #15119 from Maiklins/bael-7061-update-readme
Update readme
2023-11-01 21:25:32 +01:00
mikr dad8a5c021 Update readme 2023-11-01 21:14:14 +01:00
Maiklins 47856fa103 Merge pull request #15073 from Neetika23/stringIterationCode
String iteration code
2023-11-01 21:09:45 +01:00
Bogdan Cardoş 7482aa3c25 BAEL-6874 test code for article (#15118)
* BAEL-6819 convert from int to Long in Java

* BAEL-6819 update package name

* BAEL-6874 test code for article

* BAEL-6874 rename test class
2023-11-01 12:13:08 -07:00
Bhaskar Ghosh Dastidar aaa4e333a6 [BAEL-7043] mutable strings (#15112)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-11-01 12:02:13 -07:00
MohamedHelmyKassab 33f52b2e0b This PR is related to the article BAEL-7130 (#15109)
* This commit related to the article BAEL-7130

This commit aims to add a RoundDate class with several methods to round the date.

* This commit related to the article BAEL-7130

This commit aims to add a test class DateRoundingUnitTest.
2023-11-01 11:54:40 -07:00
@hangga 039753af1f back to 16 2023-11-01 18:26:54 +07:00
@hangga 3286aab10c bit 16 to 64 2023-11-01 18:24:02 +07:00
@hangga e0ca0be76a positive 2023-11-01 16:27:09 +07:00
@hangga 10ddc97854 update 2023-11-01 12:44:04 +07:00
@hangga 579f35981e update, rename class 2023-11-01 11:01:27 +07:00
@hangga da886b27b3 [Update] resolve after review 2023-11-01 10:52:35 +07:00
@hangga b55db89b5f update 2023-11-01 10:37:14 +07:00
Hangga Aji Sayekti 0165793370 Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDLongGeneratorUnitTest.java
IntStream to loop

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-11-01 10:36:43 +07:00
danielmcnally285 a54e0ba8d2 Merge branch 'eugenp:master' into danielmcnally285_return_first_non_null 2023-10-31 20:21:00 +00:00
danielmcnally285 9d66171dd5 change unit test name for apache commons unit test given one object and alt method 2023-10-31 20:19:54 +00:00
Eugene Kovko 036369c792 BAEL-6705: Fixed typo (#15015) 2023-10-31 08:21:05 -07:00
Niket Agrawal 2f34022ded Test Case Update 2023-10-31 18:11:34 +05:30
@hangga ece5cdeb6e add unit test 2023-10-31 18:17:54 +07:00
@hangga a567d31871 add some methods 2023-10-31 18:15:47 +07:00
Michael Olayemi 6e25eb35cc Add Spring StringUtils class (#15090)
* Add Spring StringUtils class

* Add Spring StringUtils class
2023-10-31 09:36:00 +05:30
Kasra Madadipouya e984098398 Merge pull request #15035 from timis1/JAVA-23808_1
JAVA-23808 Rewrite Custom Spliterator Section of Introduction to Spli…
2023-10-30 21:28:53 +01:00
Vini 6f280e4cac Merge pull request #15054 from anujgaud/ag/check-string-contains-unicode-letters
[BAEL-7059] Check if a String Contains Unicode Letters
2023-10-30 20:30:50 +01:00
Azhwani 49929794b8 BAEL-7111: Get First Date of Current Month in Java (#15023) 2023-10-30 17:42:44 +01:00
Azhwani de7dadabef BAEL-7108: Comparing Arrays Using compare() Method in Java (#14975) 2023-10-30 17:23:12 +01:00
Loredana Crusoveanu fdad46e34b Merge pull request #14838 from hangga/completablefuture
[Add] completablefuture timeout test | Hangga Aji Sayekti
2023-10-30 17:41:35 +02:00
anujgaud dfd9baf8e0 Formatted UnicodeLetterChecker.java 2023-10-30 13:50:16 +05:30
Manfred a127e7644e BAEL-6804: Difference Between ZipFile and ZipInputStream in Java (#15039)
* BAEL-6804: Difference Between ZipFile and ZipInputStream in Java

* BAEL-6804: Difference Between ZipFile and ZipInputStream in Java
- use 2-space indents for line continuations
2023-10-29 19:56:52 -05:00
Loredana Crusoveanu 8a48077403 Merge pull request #15091 from edizor/master
Update README
2023-10-29 11:34:16 +02:00
Michael Olayemi f5ce4e6d86 PrintWriter vs FileWriter in Java (#15034)
* https://jira.baeldung.com/browse/BAEL-7117

* PrintWriter vs FileWriter in Java

* PrintWriter vs FileWriter in Java

* https://jira.baeldung.com/browse/BAEL-7117

* PrintWriter vs FileWriter in Java
2023-10-29 09:58:39 +05:30
pentakon c115e99dcc BAEL-6814 Convert List<CompletableFuture> to CompletableFuture<List> (#15028)
* Code for BAEL-6814 Convert List<CompletableFuture> to CompletableFuture<List>

* Refactor some comments
2023-10-29 09:57:34 +05:30
edizor ff76b6c949 Update README.md
[skip ci]
2023-10-29 07:25:11 +08:00
edizor 78dc038e8b Update README.md
[skip ci]
2023-10-29 07:14:25 +08:00
edizor 1425f647f6 Update README.md
[skip ci]
2023-10-29 07:09:45 +08:00
edizor b4fd454c65 Update README.md
[skip ci]
2023-10-29 07:07:22 +08:00
edizor fde7fabe42 Update README.md
[skip ci]
2023-10-29 07:04:20 +08:00
edizor fcff240865 Update README.md
[skip ci]
2023-10-29 07:02:12 +08:00
edizor 8518e65d78 Update README.md
[skip ci]
2023-10-29 06:51:40 +08:00
edizor 499705b6d1 Update README.md
[skip ci]
2023-10-29 06:42:50 +08:00
edizor f6deb1c0ef Update README.md
[skip ci]
2023-10-29 06:40:01 +08:00
edizor 467b9a2fed Update README.md
[skip ci]
2023-10-29 06:31:46 +08:00
edizor 3df29751a7 Update README.md
[skip ci]
2023-10-29 06:29:25 +08:00
lucaCambi77 c65981938f [BAEL-7048] - Passing Strings By Reference in Java (#15047)
* feat: pass by reference java string

* fix: review
2023-10-28 16:56:11 -05:00
collaboratewithakash 3042166f4b readme created or backlink added 2023-10-28 14:39:02 +05:30
collaboratewithakash 96b32de7ba backlink added 2023-10-28 14:33:07 +05:30
collaboratewithakash 235cba0dbd updated backlink 2023-10-28 13:08:15 +05:30
Anton Dalagan 3c8d10dd82 Bael 7146 improvement to this article convert double to float in java (#15067)
* Commit 1 - Anton Dalagan Code for Evaluation article. Contains Unit tests, domain class, and App main method.

* BAEL-7146 Updated the unit test to display the results of the conversion. This will be explained in the article itself.

* BAEL-7146 cleaned up pR
2023-10-27 09:44:07 -07:00
Neetika23 befba49dec Update StringIteratorTest.java 2023-10-27 14:52:14 +05:30
Neetika23 66604b8e27 Update StringIterator.java 2023-10-27 14:51:01 +05:30
Neetika23 98c8e96fca Delete core-java-modules/core-java-lang-oop-patterns/src/test/java/com/baeldung/shallowdeepcopy/ShallowDeepCopyExampleTest.java 2023-10-27 14:49:52 +05:30
Neetika23 f20dbd4ed9 Delete core-java-modules/core-java-lang-oop-patterns/src/main/java/com/baeldung/shallowdeepcopy/Student.java 2023-10-27 14:49:29 +05:30
Neetika23 002def2d24 Delete core-java-modules/core-java-lang-oop-patterns/src/main/java/com/baeldung/shallowdeepcopy/School.java 2023-10-27 14:49:09 +05:30
Azhwani 16b931c4df BAEL-7055: How can I capitalize the first letter of each word in a string? (#14927)
Co-authored-by: Mo Helmy <135069400+BenHelmyBen@users.noreply.github.com>
2023-10-27 08:46:04 +02:00
Neetika23 9f1ce56f82 Update StringIteratorTest.java 2023-10-27 00:09:53 +05:30
Neetika23 aa7ad247e1 Update StringIteratorTest.java 2023-10-27 00:02:38 +05:30
Neetika23 7aeb97fcdf Update StringIterator.java 2023-10-26 23:57:27 +05:30
Neetika23 0fa77ed809 Create StringIteratorTest.java 2023-10-26 23:45:34 +05:30
Neetika23 d3d60f392b Update StringIterator.java 2023-10-26 23:41:32 +05:30
Neetika23 450b6d8025 Create StringIterator.java 2023-10-26 23:25:17 +05:30
Azhwani b4db616646 BAEL-7026: Check If a String Contains a Number Value in Java (#14867)
Co-authored-by: Luis Javier Peris Morillo <javierperis@gmail.com>
2023-10-26 08:18:01 +02:00
davidmartinezbarua ba577997ae Merge pull request #14978 from etrandafir93/features/BAEL-7001-retry_completable_future
BAEL-7001: retry RetryCompletableFuture
2023-10-25 17:22:38 -03:00
davidmartinezbarua 5337edf3b2 Merge pull request #15041 from thibaultfaure/article/BAEL-7107-arrays-mismatch
BAEL-7107 Code for the article Arrays mismatch method in Java
2023-10-25 16:55:13 -03:00
davidmartinezbarua 2b44a380df Merge pull request #14863 from sam-gardner/BAEL-6895-truncating-doubles-to-two-decimal-places
BAEL-6895 Add code for truncating a double to two decimal places
2023-10-25 16:43:13 -03:00
emanueltrandafir1993 f5bb9479b4 MKT-7001: formatting 2023-10-25 19:53:50 +02:00
Mo Helmy 69aaf2dbf7 This commit is related to the article BAEL-7089 (#15065)
This commit aims to update the evenElementsQueue queue with oddElementsQueue.
2023-10-25 09:10:28 -07:00
danielmcnally285 efdb3f65b3 return first non null and non empty optional unit tests 2023-10-23 19:15:17 +00:00
anujgaud e99ce4da19 Add tests for UnicodeLetterChecker 2023-10-23 23:45:43 +05:30
anujgaud 9756cb1d10 Add UnicodeLetterChecker to check if String contains Unicode 2023-10-23 23:44:18 +05:30
emanueltrandafir1993 5b4fc0d6f3 BAEL-7001: small fix 2023-10-23 18:13:35 +02:00
emanueltrandafir1993 210eaf2c0b BAEL-7001: fixed formatting 2023-10-23 18:07:43 +02:00
Loredana Crusoveanu 1556aac121 Merge pull request #15031 from edizor/master
Update README
2023-10-23 10:07:31 +03:00
Mo Helmy 80f0c86aa3 This commit is related to the article BAEL-7089 (#15037)
This commit aims to add a test class named "RemoveQueueElementsUnitTest" that provides code snippets for removing elements from a queue.
2023-10-22 19:12:19 -07:00
Thibault Faure 4cd426bb14 BAEL-7107 Code for the article Arrays mismatch method in Java 2023-10-22 23:40:15 +02:00
Bipin kumar 6e470ca730 JAVA-25111: Adding missed modules (#14805) 2023-10-22 15:09:12 +03:00
anujgaud 781a1c265a [BAEL-6623] Add code for Convert Object to String (#15000)
* Add Person class

* Add Unit tests for Person class

* Add Person class

* Add PersonWithHashCode class

* Address review comments

* Add PersonUnitTest class

* Add PersonWithHashCodeUnitTest class

* Add missing dependency

* Remove redundant code

* Remove redundant code

* Address review comments

* Address review comments
2023-10-22 09:49:38 +05:30
timis1 1a7d3aff21 JAVA-23808 Rewrite Custom Spliterator Section of Introduction to Spliterator Article 2023-10-21 20:11:04 +03:00
Neetika23 c0d76384a4 Merge branch 'eugenp:master' into deepShallowCopy 2023-10-21 20:23:16 +05:30
anuragkumawat b0ed62e8c8 JAVA-24938 Article Code Matches first commit (#14820) 2023-10-21 11:57:49 +03:00
Loredana Crusoveanu 835cb8e15c Merge pull request #15022 from eugenp/lor6-patch-2
Delete core-java-modules/core-java-lang-math-3/src/test/java/com/bael…
2023-10-20 19:26:01 +03:00
Loredana Crusoveanu 08c8682406 Merge pull request #15021 from eugenp/lor6-patch-1
Update README.md
2023-10-20 19:25:36 +03:00
edizor faae5f776b Update README.md
[skip ci]
2023-10-20 22:12:59 +08:00
edizor 60bdc1f505 Update README.md
[skip ci]
2023-10-20 22:06:57 +08:00
edizor 349fee9202 Update README.md
[skip ci]
2023-10-20 22:00:01 +08:00
edizor 76fc84ba64 Update README.md
[skip ci]
2023-10-20 21:49:19 +08:00
edizor 8457a250f4 Update README.md
[skip ci]
2023-10-20 21:46:32 +08:00
edizor b3702a402a Update README.md
[skip ci]
2023-10-20 21:44:03 +08:00
edizor bd31b72858 Update README.md
[skip ci]
2023-10-20 21:35:24 +08:00
edizor 29eb8388c9 Update README.md
[skip ci]
2023-10-20 21:33:29 +08:00
edizor 838e1d14ca Update README.md
[skip ci]
2023-10-20 21:31:32 +08:00
edizor 2e219b6a08 Update README.md
[skip ci]
2023-10-20 21:28:07 +08:00
edizor 2609ac2689 Update README.md
[skip ci]
2023-10-20 21:24:28 +08:00