3507 Commits

Author SHA1 Message Date
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