Commit Graph

3987 Commits

Author SHA1 Message Date
Mo Helmy 5b76e4eace
This PR is related to BAEL-7174 (#15681)
* This PR is related to BAEL-7174

This PR aims to add a new test class "CheckIfStringContainsInvalidEncodedCharactersUnitTest".

* Update CheckIfStringContainsInvalidEncodedCharactersUnitTest.java

Updating if-else with ternary operator
2024-01-18 12:27:04 -08:00
DiegoMarti2 c97e529deb
baeldung-articles : BAEL - 6592 (#15682)
Difference between ZoneOffset.UTC and ZoneId.of("UTC")
2024-01-18 12:26:30 -08:00
anujgaud 3becb407b8
Add logging.properties file 2024-01-18 22:15:45 +05:30
anujgaud 6945c01ec7
Add unit tests for SSLDebugLogger 2024-01-18 22:14:45 +05:30
anujgaud 4b5a9dfbad
Add code for enabling SSL Debug logs 2024-01-18 22:13:33 +05:30
ICKostiantyn.Ivanov d6f5abfe6a BAEL-7453 - Add access modifiers to methods and classes. Add Assertions class static import 2024-01-18 14:09:06 +01:00
Niket Agrawal aee45fb149 NEW PR 2024-01-18 10:53:08 +05:30
ICKostiantyn.Ivanov bd1239c699 BAEL-7453 - Fix modifiers and naming for test classes fields 2024-01-17 11:19:10 +01:00
ICKostiantyn.Ivanov b1df562162 BAEL-7453 - Convert byte[] to Byte[] and Vice Versa in Java 2024-01-17 11:14:14 +01:00
Imran Alam 2315b0cb79 Created files for deep and shallow copy in java 2024-01-16 21:02:52 +05:30
timis1 9dd807367b
JAVA-30302 Review log statements for projects - Week 52 - 2023 (conti-2) (#15623) 2024-01-15 23:40:59 +02:00
Loredana Crusoveanu e876cf4db0 add missing resources 2024-01-15 21:58:50 +02:00
Andrea Giulio Cerasoni 9c51620159
Merge pull request #15627 from wynnteo/BAEL-7354
Migrated from old fork
2024-01-15 19:23:05 +00:00
Wynn Teo a662e499b9
Migrated from old fork (#15626) 2024-01-15 12:46:46 -06:00
anujgaud 444d747468
Add tests for byte to int conversion 2024-01-15 22:32:26 +05:30
anujgaud 84530dd8bb
Add byte to int conversion code 2024-01-15 22:31:09 +05:30
Mo Helmy 85c4162119
This commit is related to BAEL-7028 (#15648)
This commit aims to add two classes:
       -  PrintMessageWithoutMainMethod
       - PrintMessageWithoutMainUnitTest
2024-01-15 08:49:23 -08:00
Sam Gardner 9231d3611c BAEL-7382 Add code for calculating weekdays between two dates 2024-01-15 14:35:18 +00:00
Thibault Faure fc231c59ff BAEL-7356 Code for the Morse Code Translation in Java article 2024-01-14 13:46:57 +01:00
SGWebFreelancer 44300ba227 Migrated from old fork 2024-01-14 18:01:41 +08:00
DiegoMarti2 f75ab1c847
baeldung-articles : BAEL-7180 (#15616)
Check if a float value is equivalent to an integer value in Java.
2024-01-13 14:38:34 -08:00
Kai Yuan a6222f4432 [util-sql-date-improvement] add sqlDate -> utilDate (#15578)
* [util-sql-date-improvement] add sqlDate -> utilDate

* [util-sql-date-improvement] clean up imports
2024-01-12 19:21:05 -06:00
Liam Williams aad40a8de2 Merge pull request #15281 from Neetika23/print2DArray
Print2 d array
2024-01-12 15:53:38 +00:00
rcalago 0e637e8dfd Update REAME.md 2024-01-12 21:15:39 +08:00
Kai Yuan edeee5a571 Static ref non static (#15571)
* [rm-char-in-other-str] BAEL-7355 Remove characters from a string that are present in a second string

* [rm-char-in-other-str] shorten the package name

* [static-ref-non-static] static context ref non-static memebers
2024-01-11 20:22:00 -06:00
Kai Yuan 9b6a2a0236 [fileWriter-flush-close] FileWriter flush() and close() (#15559) 2024-01-11 20:12:52 -06:00
DiegoMarti2 9e5f305c32 Update JodaDateTimeToDateAndViceVersaUnitTest.java (#15587)
assertEquals(jodaDateTime.getMillis(), javaDate.getTime());
assertEquals(javaDate.getTime(), jodaDateTime.getMillis());
2024-01-11 09:28:24 -08:00
MohamedHelmyKassab d317cbf552 This commit is related to BAEL-6873 (#15579)
This commit aims to add a class "ReadInputCharByChar" that provides several approaches to read input char by char.
2024-01-10 15:24:01 -08:00
Kai Yuan c41bd80850 [call-a-method-oneach] call a method on each element (#15540)
* [call-a-method-oneach] call a method on each element

* [call-a-method-oneach] fix typo
2024-01-09 19:01:27 -06:00
DiegoMarti2 a94bf971f5 baeldung-articles : BAEL-7403 (#15573)
* baeldung-articles : BAEL-7403

Convert Joda-Time DateTime to Date and Vice Versa

* (Move) baeldung-articles : BAEL-7403

Move the code to this module.
2024-01-09 14:13:10 -08:00
Harry9656 5136e7349b JAVA-27804: Remove explicit logging dependency (#15448) 2024-01-09 09:48:12 +02:00
vaibhav007jain 40dc851047 Bael 7163 (#15532)
* Create StreamFromEmptyList.java

Initial Commit

* Create StreamFromEmptyListUnitTest.java

Initial commit of StreamFromEmptyListUnitTest.

* Create README.md

Adding README file.

* Create pom.xml

* Create pom.xml

* Create REAME.md

* Delete core-java-modules/core-java-streams-6/src/README.md

* Delete core-java-modules/core-java-streams-6/src/pom.xml

* Update pom.xml

* Update pom.xml
2024-01-09 10:11:00 +05:30
Wynn Teo c23c21e38e First draft of future vs promise (#15547) 2024-01-08 21:45:45 -06:00
Mikhail Polivakha 7a14fcdb32 BAEL-7340 Using Custom TrustStore in Java (#15562)
* BAEL-6953 implemented

* BAEL-6953 added live test

* Fixed test

* BAEL-7340 Using Custom TrustStore in Java

* BAEL-7340 Added explicit --add-exports statement for core-java-security-4
2024-01-08 19:08:14 -08:00
Neetika23 13c2b756d3 Update pom.xml 2024-01-08 23:54:15 +05:30
Eugene Kovko 0e38c09d04 BAEL-7448: BigDecimal to Integer (#15569) 2024-01-07 19:07:28 -08:00
Mo Helmy b41a78fb39 This commit is related to BAEL-7024 (#15564)
This commit aims to add a new test class "ReplaceNonPrintableCharsUnitTest".
2024-01-07 19:01:27 -08:00
Eugene Kovko 36edee6be7 BAEL-7447: Integer to BigDecimal (#15563) 2024-01-07 18:50:22 -08:00
Neetika23 b57ecaab79 Update Print2DArraysUnitTest.java 2024-01-08 00:18:33 +05:30
rcalago a3c39aa983 Update README.md
Added link to relevant articles
2024-01-07 10:46:40 +08:00
rcalago 6453003f3f Update README.md
Added link to relevant articles
2024-01-07 10:44:26 +08:00
Kai Yuan ec3fcc078d [rm-char-in-other-str] BAEL-7355 Remove characters from a string that… (#15531)
* [rm-char-in-other-str] BAEL-7355 Remove characters from a string that are present in a second string

* [rm-char-in-other-str] shorten the package name
2024-01-05 20:20:08 -06:00
Rajat Garg d3e944a159 Check if a point lies between 2 points (#15554)
Co-authored-by: rajatgarg <rajatgarg@adobe.com>
2024-01-05 14:29:56 -08:00
Vini 20c3c8e7cc Merge pull request #15557 from DiegoMarti2/master
Update CheckIfListContainsEnumUnitTest.java
2024-01-05 21:52:04 +01:00
DiegoMarti2 53e1229492 Update CheckIfListContainsEnumUnitTest.java 2024-01-05 20:13:06 +02:00
panos-kakos 9b299f01ae [JAVA-27683] Fix failing module core-java-modules - upgrade to JDK 17 (#15495) 2024-01-04 20:08:03 +02:00
Eugene Kovko 6114e0534f BAEL-7408: Added braces (#15552) 2024-01-04 09:46:35 -08:00
Eugene Kovko 506c2cedc1 Bael 7408 (#15541)
* BAEL-7408: SinglyLinkedList Example

* BAEL-7408: Extract Node interface

* BAEL-7408: Setup for WrappedNode LinkedList

* BAEL-7408: Removed WrappedNode and cleaned the example

* BAEL-7408: Removed Node interface

* BAEL-7408: Additional test for removeLast
2024-01-03 19:17:12 -08:00
panos-kakos 88786dc076 [JAVA-29474] Replace commons-lang with commons-lang3 (#15514) 2024-01-03 22:21:49 +01:00
Vini 5c6e53c15a Merge pull request #15537 from DiegoMarti2/master
BAEL-7041
2024-01-03 08:36:29 +01:00
Maiklins 3f357f85a4 Merge pull request #15539 from Maiklins/BAEL-7368-update-readme
Update README.md
2024-01-02 21:19:58 +01:00
Maiklins b9bfb7daab Update README.md 2024-01-02 20:39:45 +01:00
Maiklins 4d558554b5 Merge pull request #15513 from danielmcnally285/danielmcnally285_string_to_long
BAEL-7368 - String to Long
2024-01-02 20:30:07 +01:00
Amit Pandey c03ed0c608 Make changes to remove relativepath from child modules like core java (#15535)
* Make changes to remove relativepath from child modules like core java

* Change some version numbers to minimize changes

* Fix tests

* Make the test more generic so that we dont have to hard code strings as it will require change every new year
2024-01-02 23:14:18 +05:30
DiegoMarti2 3ae82245ee BAEL-7041
Commit for the article "Check if List Contains At Least One Enum" which adds the "CheckIfListContainsEnumUnitTest" class to check if a list contains an enum in Java.
2024-01-02 16:16:26 +02:00
danielmcnally285 f94fd0ea86 Merge branch 'eugenp:master' into danielmcnally285_string_to_long 2024-01-01 20:10:12 +00:00
anuragkumawat 2096eac575 JAVA-29231 Move modules inside existing container modules (#15492) 2024-01-01 21:27:05 +02:00
danielmcnally285 441d470b44 remove public access modifier 2024-01-01 17:43:08 +00:00
danielmcnally285 c9c82e9e33 Merge branch 'eugenp:master' into danielmcnally285_string_to_long 2024-01-01 17:39:25 +00:00
Kai Yuan 37aa0612df [str-length] string length vs string.bytes.length (#15518)
* [str-length] string length vs string.bytes.length

* [str-length] add relative path to the core-java-modules
2023-12-31 09:24:53 -06:00
danielmcnally285 36cbde1b9c add relative path to core-java-modules 2023-12-31 13:45:25 +00:00
danielmcnally285 90ebc6921c rename unit test methods to be more precise 2023-12-29 14:58:56 +00:00
danielmcnally285 975db60d35 use 2147483648 as string for unit tests 2023-12-29 13:59:31 +00:00
danielmcnally285 0efd1c3106 Use 1234567 string for unit tests 2023-12-29 12:57:12 +00:00
danielmcnally285 4ba7ed5d80 string to long primitive or long object unit tests 2023-12-29 11:54:15 +00:00
Neetika23 8c9636c5c6 Update Print2DArraysUnitTest.java 2023-12-28 20:47:47 +05:30
panos-kakos 7d2fc1fe88 [JAVA-26773] (#15417)
* [JAVA-26773]

* [JAVA-26773]
2023-12-28 16:11:35 +01:00
Neetika23 5f0cc26b40 Delete core-java-modules/core-java-arrays-guides/src/test/java/com/baeldung/print2DArrays directory 2023-12-28 20:33:02 +05:30
Neetika23 cc3efa5c86 Update Print2DArraysUnitTest.java 2023-12-28 20:31:38 +05:30
Neetika23 458c3493e6 Update Print2DArraysUnitTest.java 2023-12-28 20:22:23 +05:30
timis1 05aa00c4c8 JAVA-26077 Update the lombok version (#15493)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-12-27 21:04:34 +01:00
Neetika23 03949adeed Update Print2DArraysUnitTest.java 2023-12-27 23:50:18 +05:30
anuragkumawat a347c74e04 JAVA-29004 Remove parent-java module (#15477) 2023-12-27 18:47:23 +02:00
Sam 223c679535 Bael 7184 (#15325)
* implementing BAEL-6833

* implementation for BAEL-7115

* feedback fixes

* Moving code folder as per feedback

* renaming logic class folder name

* code implementation

---------

Co-authored-by: technoddy <mail.technoddy@gmail.com>
2023-12-27 10:37:40 -06:00
panos-kakos 5ead3608ac [JAVA-27621] Moved article "Remove Duplicate Values From HashMap in Java" to core-java-collections-maps-3 (#15464) 2023-12-26 20:15:47 +01:00
panos-kakos 21347e6cf2 [JAVA-29409] (#15483) 2023-12-26 10:17:23 +05:30
Wynn Teo 4b6c1c6e05 First version of Iterator vs For Loop unit testing (#15365)
* First version of Iterator vs For Loop unit testing

* Add a new line after package

* Update the method name
2023-12-22 20:27:39 -06:00
Maiklins afac7049fb Merge pull request #15408 from Michaelin007/master
Calculate Months Between Two Dates in Java
2023-12-22 08:43:15 +01:00
Manfred 56a4afe866 BAEL-7175: UTF-8 Validation in Java (#15428) 2023-12-21 20:07:48 -06:00
Kai Yuan ca584307b2 [shift-char-in-string] rotate a string (#15441) 2023-12-21 19:57:56 -06:00
davidmartinezbarua 4b1e73b005 Merge pull request #15324 from ukhan1980/BAEL-7073-executor-service
[BAEL-7073] code for executor service
2023-12-21 20:33:41 -03:00
Rajat Garg 288178f87b [BAEL-7306] Add methods for sorting a list (#15462)
Co-authored-by: rajatgarg <rajatgarg@adobe.com>
2023-12-20 21:04:32 -08:00
MohamedHelmyKassab a87d4fbdb3 This commit is related to BAEL-7342 (#15460)
This commit aims to add a test class "CheckIfStringBuilderContainsCharUnitTest" that suggests several ways to check if a StringBuilder has a char or not.
2023-12-20 20:58:07 -08:00
Alexandru Borza 390b2324bb BAEL-7286 Print a double value without scientific notation in Java (#15427)
* BAEL-7051 - Catch Common Mistakes with Error-Prone Library in Java

* BAEL-7286
Print a double value without scientific notation in Java

* BAEL-7286
Print a double value without scientific notation in Java

* BAEL-7286 Print a double value without scientific notation in Java

* rename package

* format code
2023-12-20 20:34:12 -08:00
davidmartinezbarua 50416857b1 Merge pull request #15364 from parthiv39731/PR-7308
BAEL-7308
2023-12-20 17:13:58 -03:00
Kasra Madadipouya d49c309ff4 JAVA-29378 reduce loop size from 10M to 1M (#15452) 2023-12-20 23:25:48 +05:30
sachin b19a80d569 feature/BAEL-6712-split large file (#15262)
* feature/BAEL-6712-split lareg file

* feature/BAEL-6712-split lareg file

* bael-6712 review comment fix

---------

Co-authored-by: Sachin kumar <sachin.n.kumar@oracle.com>
2023-12-19 19:34:54 -06:00
Maiklins 65e23af90e Align formatting with article 2023-12-19 22:26:33 +01:00
parthiv39731 089f715d8d BAEL-7308, renamed methods 2023-12-19 21:23:38 +05:30
michaelin007 c35c13d5d8 https://jira.baeldung.com/browse/BAEL-7333 2023-12-18 04:59:42 +00:00
uzma ee4679456f [BAEL-7073] delete code from old module 2023-12-17 16:44:23 +00:00
uzma efb0046025 [BAEL-7073] change location of code 2023-12-17 16:41:12 +00:00
edizor 4fc122ab96 Update README.md
[skip ci]
2023-12-17 08:35:30 +08:00
edizor 312d3b20c6 Update README.md
[skip ci]
2023-12-17 08:31:28 +08:00
edizor 27a1df02bb Update README.md
[skip ci]
2023-12-17 08:21:43 +08:00
edizor 8b40ff0af4 Update README.md
[skip ci]
2023-12-17 08:12:24 +08:00
edizor b746b1f0b0 Update README.md
[skip ci]
2023-12-17 07:55:53 +08:00
edizor c925e39c5f Update README.md
[skip ci]
2023-12-17 07:09:44 +08:00
edizor 43e0367cc7 Update README.md
[skip ci]
2023-12-17 07:05:43 +08:00
edizor b7a4a1100d Create README.md
[skip ci]
2023-12-17 06:59:52 +08:00
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