Commit Graph

3046 Commits

Author SHA1 Message Date
edizor 11ecd39504 Update README.md
[skip ci]
2023-05-12 00:02:53 +08:00
edizor aba6f36ac7 Create README.md
[skip ci]
2023-05-12 00:01:07 +08:00
edizor 035717faa7 Update README.md
[skip ci]
2023-05-11 23:59:08 +08:00
edizor 2556be758d Update README.md
[skip ci]
2023-05-11 23:52:22 +08:00
edizor 03cc9c90b7 Update README.md
[skip ci]
2023-05-11 23:42:17 +08:00
edizor b22707d69e Update README.md
[skip ci]
2023-05-11 23:33:10 +08:00
brokenhardisk 4192bf3bdc BAEL-6342 JUnit Test Class for Null and Empty String (#13963) 2023-05-11 09:23:11 +05:30
Kai Yuan a74f4ec8f5 [scanner-to-array] Saving Java Scanner Input to an Array (#13969) 2023-05-10 20:29:50 -05:00
Kilian Schneider c06e1ab413 BAEL-6185 reuse string builder performance (#13791) 2023-05-10 07:39:34 -07:00
Anastasios Ioannidis 1ff112228c JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975) 2023-05-09 12:55:49 +03:00
davidmartinezbarua 1fd15c9557 Merge pull request #13934 from thibaultfaure/articles/BAEL-6438-find-longest-word-in-given-string
BAEL-6438 Code for the Find the longest word in a given string article
2023-05-09 00:41:01 -03:00
Bahaa El-Din Helmy 53d269ca68 Add files via upload (#13978) 2023-05-08 14:11:33 -07:00
Eugene Kovko 4cc0380249 BAEL-6501 Update article "The producer-consumer problem example in Java" (#13973)
* BAEL-6501 Changed the synchronization block to use the DataQueue

* BAEL-6501 Fixed the platform agnostic new lines

* BAEL-6501 Moved ID increment to a static method

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

* [BAEL-6253] records equals and hashcode

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

---------

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

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

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

* BAEL-6079 Code examples from article

* BAEL-6079 Code examples from article update

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

---------

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

* fix: Removed a faulty test

* fix: Change Random to ThreadLocalRandom

* fix: Renamed a method

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

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

* feat: Renamed test module

* feat: Added scripts for compiling library modules

* feat: Added scripts for running core module

* feat: Added scripts for running test module

* fix: Fixed module name

* fix: Removed unnecessary module imports

* feat: Added script for running tests with patch

* fix: Remove unnecessary module path imports

* feat: Script for simple classpath tests

* fix: Updated output directory

* fix: Updated output directory for test compilation

* fix: Replace maven repository with local lib folder

* feat: Add lib folder

* feat: Update the scripts

* fix: Remove pom from test module

* fix: Update core pom dependencies

* fix: Remove test module from a parent pom

* fix: Removed jars and added a script

* fix: Fix a script

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

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

* review

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

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

* Creating a deep vs shallow copy of an object in Java

* Baeldung article converting number bases

* Baeldung article converting number bases

* edits made to Converting a Number from One Base to Another in Java

* added braces to oneliners

* added precondition to check input

* String[] vs String...

* helper vs Utility classes

* helper vs utility classes code

* helper vs utility classes refactor

* utility vs helper class

* Helper vs utility

* helper vs utility classes

* refactor package name

* Revert "refactor package name"

This reverts commit d9464aa2de272b75ff7efe1c5ffb4de7fd4506e0.

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

* BAEL-6226 Calculate Pi Java Program

* Calculate Pi Java Program
2023-04-05 06:44:45 +05:30
kpentaris 9df061c513 Add application file for BAEL-4496 (#13762) 2023-04-04 13:39:51 +02:00
Michael Olayemi 4cebc2aaf1 BAEL-6226 Calculate Pi Java Program (#13693)
* BAEL-6226 Calculate Pi Java Program

* BAEL-6226 Calculate Pi Java Program
2023-04-04 07:36:12 +05:30
panos-kakos 38ae7e56dd [JAVA-19668] (#13721)
* [JAVA-19668] Moved libraries-5 module to jdk9-and-above profile

* [JAVA-19668] Moved libraries-4 module to jdk9-and-above profile

* [JAVA-19668] Moved libraries-6 module to jdk9-and-above profile

* [JAVA-19668] Moved libraries module to jdk9-and-above profile + reverted changes fro libraries-6

* [JAVA-19668] Created libraries-jdk8 module

* [JAVA-19668] Clean up
2023-04-03 22:52:11 +05:30
Deboshree 60eb348df5 https://jira.baeldung.com/browse/BAEL-
moved the code to a different module
2023-04-03 15:11:48 +05:30
Kai Yuan 4027e83023 [str-to-uuid] uuid from string (#13736)
* [str-to-uuid] uuid from string

* [str-to-uuid] rename test methods
2023-04-01 10:06:23 -05:00
Kai Yuan c40bdd9f36 [BAEL-6297_boolean-to-str] convert boolean to java article (#13729)
* [BAEL-6297_boolean-to-str] convert boolean to java article

* [BAEL-6297_boolean-to-str] using Boolean.FALSE instead of false for the Boolean variable

* [BAEL-6297_boolean-to-str] rename test methods
2023-03-30 18:01:25 -05:00
Anastasios Ioannidis 11f740192c JAVA-18131 Upgrade core-java-modules to JDK 11 (#13462)
* JAVA-18131 Upgrade core-java-modules to JDK 11

* JAVA-18131 Fixed pom conflicts

* JAVA-18131 Upgraded ASM and updated expected test results

* JAVA-18131 Fixed FormatNumberUnitTest and removed core-java-security from upgrading to 17

* JAVA-18131 Removed core-java-sun from upgrading

* JAVA-18131 Removed core-java-jvm-2, fixed number test

* JAVA-18131 Removed core-java-sun from upgrading to 11

* JAVA-18131 Removed all edited submodules from pre-jdk9

* JAVA-18131 removed pre-jpms from pre-jdk9

* JAVA-18131 Removed core-java-numbers-3 from pre-jdk9 profiles

* JAVA-18131 Cleanup

* JAVA-18131 Cleanup 2 - Removed upgraded submodules from core-java-modules

* JAVA-18131 Cleanup completed

* JAVA-18131 Replaced core-java-modules submodules in main pom with core-java-modules

* JAVA-18131 Replaced core-java-modules submodules in main pom, continued

* JAVA-18131 Core-java-nio-2, core-java-serialization back to pre-jdk9

* JAVA-18131 Try removing math-3 from core-java-modules and explicitly refer in parent pom

* JAVA-18131 Removed -lang, -nio, -streams-2, -math-3, -conversions-2 from jdk9 profiles

* JAVA-18131 Corrected conversions-2 module

* JAVA-18131 Review fixes

* JAVA-18131 Fixed -nio, re-upgraded -lang

* JAVA-18131 Adapted -nio for JDK 11, returned -lang to JDK 8

* JAVA-18131 Final corrections
2023-03-31 01:39:12 +05:30
Loredana Crusoveanu 4d9f26ebe3 Merge pull request #13741 from edizor/master
Update README
2023-03-30 20:58:43 +03:00
anuragkumawat dd5badab9c JAVA-19058 Review the time of the build - Week 42 - 2022 (moved-18) (#13732) 2023-03-30 21:56:27 +05:30
edizor 2e0475372b Update README.md
[skip ci]
2023-03-30 22:30:42 +08:00
edizor 64a07a6802 Update README.md
[skip ci]
2023-03-30 22:14:12 +08:00
ACHRAF TAITAI e8fe289f85 Finding the Minimum Value in an ArrayList along with the Index Number… (#13498)
* Finding the Minimum Value in an ArrayList along with the Index Number in Java

* BAEL-6147: rename test unit method

* adapt test method name
2023-03-28 17:39:47 +05:30
Vini 50d78ab618 Merge pull request #13706 from ciphx/string_to_int_encapsulation
String to int encapsulation
2023-03-25 16:54:57 +01:00
Deboshree a7e7286515 https://jira.baeldung.com/browse/BAEL-
addressing PR comments
2023-03-24 23:17:33 +05:30
Bhaskar Ghosh Dastidar bc0627317c [JAVA-6173] Difference Between parallelStream() and stream().parallel() (#13653)
* [JAVA-6173] stream.parallel and parallelStream

* [JAVA-6173] stream.parallel and parallelStream test cases

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-03-24 10:40:30 -07:00
Deboshree 979b362ad1 https://jira.baeldung.com/browse/BAEL-
1. moving modules to java-string-conversions
2. fixing old broken test
2023-03-24 21:41:26 +05:30
timis1 be7213b147 JAVA-19534 Cleanup un-committed or un-ignored artifacts - Week 14 - 2023 (#13695)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-03-24 21:11:52 +05:30
edizor a081cdb378 Update README.md
[skip ci]
2023-03-24 16:29:14 +08:00
ciphx 20829a6110 Getiing date of first day of week (#13694)
* https://jira.baeldung.com/browse/BAEL-4630

* Revert "https://jira.baeldung.com/browse/BAEL-4630"

This reverts commit a81b091678a63ed138a8e8ddb452c1c4dbf0a69b.

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

* https://jira.baeldung.com/browse/BAEL-5874
1. changing test to use constructor instead of lombok plugin
2. reverting lombok plugin addition from pom.xml

* https://jira.baeldung.com/browse/BAEL-5874
moving files to core-java-date-operations-3

---------

Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
2023-03-23 10:10:40 -07:00
timis1 163056b1ca JAVA-18228 Potential issue in "Producer-Consumer Problem With Example… (#13582)
JAVA-18228 Potential issue in "Producer-Consumer Problem With Example in Java" article
2023-03-22 10:26:22 +02:00
ciphx ca107bcc9f Getiing date of first day of week (#13689)
* https://jira.baeldung.com/browse/BAEL-4630

* Revert "https://jira.baeldung.com/browse/BAEL-4630"

This reverts commit a81b091678a63ed138a8e8ddb452c1c4dbf0a69b.

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

* https://jira.baeldung.com/browse/BAEL-5874
1. changing test to use constructor instead of lombok plugin
2. reverting lombok plugin addition from pom.xml

---------

Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
2023-03-21 19:03:59 -07:00
Eugen b2accf8773 Merge pull request #13675 from edizor/master
Update README
2023-03-21 21:17:45 +02:00
Kai Yuan 4c2dcb190f [BAEL-6115_Num2Letter] Convert a Number to a Letter in Java (#13638)
* [BAEL-6115_Num2Letter] Convert a Number to a Letter in Java

* [BAEL-6115_Num2Letter] Change the 1st method's return type to char
2023-03-20 19:15:16 -05:00
ACHRAF TAITAI a529690d12 BAEL-4753: pass encoding parameter to the getBytes() (#13677)
* BAEL-4753: pass encoding parameter to the getBytes()

* BAEL-4753: pass encoding parameter to the getBytes()
2023-03-19 13:42:12 +01:00
edizor 4e0ecfd7f6 Update README.md
[skip ci]
2023-03-17 00:37:10 +08:00
edizor 9ccf76ea33 Update README.md
[skip ci]
2023-03-17 00:34:19 +08:00
edizor 83767a2f3c Update README.md
[skip ci]
2023-03-17 00:31:52 +08:00
edizor b824eb1e2a Update README.md
[skip ci]
2023-03-17 00:24:35 +08:00
edizor 39e0803bfd Update README.md
[skip ci]
2023-03-17 00:21:05 +08:00
PJ Fanning 98a3cddc47 simplify StandardCharsets use 2023-03-14 12:37:31 +01:00
ACHRAF TAITAI e04c6f1ed3 relocate code from core-java-modules/java.nio packageto core-java-modules/core-java-io-apis-2. (#13614) 2023-03-11 19:47:58 +01:00
Kai Yuan 911df283d4 [can-collect-return-null] Can Stream.collect() Return Null Value? (#13573)
* [can-collect-return-null] Can Stream.collect() Return Null Value?

* [can-collect-return-null] remove the .gitignore file
2023-03-10 18:04:00 -06:00
davidmartinezbarua 65c9b520ee Merge pull request #13549 from sam-gardner/BAEL-5836-Moving-items-in-an-arraylist
BAEL-5836 Add unit tests for moving items in an arraylist
2023-03-10 15:42:27 -03:00
Loredana Crusoveanu ebdd42e3fb Merge pull request #13607 from edizor/master
Update README
2023-03-09 12:04:27 +02:00
Loredana Crusoveanu 7bafe24397 Merge pull request #13608 from eugenp/BAEL-5727-v2
BAEL-5727 move article
2023-03-09 11:53:14 +02:00
anuragkumawat 4964958dfe JAVA-14232 JAVA-19120 Move article Lambda Expression vs. Anonymous Inner Class to core-java-lambdas module (#13603)
* JAVA-19120 Move article Lambda Expression vs. Anonymous Inner Class to core-java-lambdas module

* Update README.md

---------

Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
2023-03-09 11:45:08 +02:00
Loredana Crusoveanu a0ca91aa6f BAEL-5727 move article 2023-03-09 10:58:27 +02:00
anuragkumawat 10ab29202a JAVA-14232 JAVA-19121 Move article Difference Between Class.forName() and Class.forName().newInstance() to core-java-jvm-3 module (#13604) 2023-03-09 10:38:37 +02:00
edizor 24c77eb00d Update README.md
[skip ci]
2023-03-09 15:32:53 +08:00
edizor 46ab96c3af Update README.md
[skip ci]
2023-03-09 15:29:11 +08:00
Kai Yuan 0f8f3e0444 [stream-2maap-dup-keys] Handle Duplicated Keys When Producing Map Usi… (#13546)
* [stream-2maap-dup-keys] Handle Duplicated Keys When Producing Map Using Java Streamt

* [stream-2maap-dup-keys] create the *-streams-maps module

* [stream-2maap-dup-keys] add the new moudle to the parent pom
2023-03-08 19:37:48 -06:00
hajarrs f1dc5c2d60 Custom Constructors in Records (#13515) 2023-03-07 19:22:24 -07:00
Anastasios Ioannidis bd178710dc Java 16710 (#13471)
* JAVA-16710 Disabled reusing forks

* JAVA-16710 Try removing alphabetical order for tests
2023-03-06 23:56:19 +05:30
s047888 4b8a372be5 moved classes for BAEL-5727 to another module 2023-03-06 09:28:33 +01:00
Loredana Crusoveanu c73c8a6432 Merge pull request #13577 from edizor/master
Update README
2023-03-05 17:14:48 +02:00
ACHRAF TAITAI 6159c229ac BAEL-6192: Get the Desktop Path in Java (#13581) 2023-03-04 20:12:23 +01:00
edizor f685531203 Update README.md
[skip ci]
2023-03-04 10:49:47 +08:00
edizor 29656071c2 Create README.md
[skip ci]
2023-03-04 10:41:08 +08:00
IfThen2 6624802960 enum samples for bael6145 implementing toString() for enums (#13407)
* enum samples for bael6145 implementing toString() for enums

* updates from code review:
FastFood1: return empty string instead of null when no matching enum found
FastFood3: make enum name variable final

* make member variable private final in FastFoot3 enum
remove trailing comma in FastFoot2 enum
2023-03-02 21:15:38 +01:00
davidmartinezbarua dd20ceda79 Merge pull request #13341 from StefSC/BAEL-5788
[BAEL-5788] Accessing Private Constructor
2023-03-02 10:39:27 -03:00
Loredana Crusoveanu 416dc0492d Merge pull request #13373 from honeykakkar/patch-2
Fix link to the previous article in README.md
2023-03-01 19:47:43 +02:00
Sam Gardner 47b47b0fd9 BAEL-5836 Add unit tests for moving items in an arraylist 2023-02-27 15:47:00 +00:00
Michael Olayemi 41b3460af6 BAEL-5741 Download a Webpage in Java (#13531)
* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java

* BAEL-5741 Download a Webpage in Java
2023-02-26 08:56:44 +05:30
Shaun Phillips 8fd4ad46ea BAEL-5915 Added different ways to create an object (#13539) 2023-02-25 09:45:16 -08:00
edizor ae1621f6fd Update README.md
[skip ci]
2023-02-24 19:39:09 +08:00
edizor aeaa4beb84 Update README.md
[skip ci]
2023-02-24 19:35:00 +08:00
edizor 9a0a3f3b8c Update README.md
[skip ci]
2023-02-24 19:25:01 +08:00
edizor 941d8dbc7d Update README.md
[skip ci]
2023-02-24 19:22:20 +08:00
edizor 8ca6e679b1 Update README.md
[skip ci]
2023-02-24 19:18:00 +08:00
edizor e6f03563c9 Update README.md
[skip ci]
2023-02-24 19:15:33 +08:00
edizor 25e159150f Update README.md
[skip ci]
2023-02-24 19:11:49 +08:00
edizor b26d2b6932 Update README.md
[skip ci]
2023-02-24 19:08:29 +08:00
Ulisses Lima 8db563d9f9 deprecation 2023-02-22 22:19:08 -03:00
2406ankita 14ce0136bd Finding All Duplicates in a List in Java- BAEL-6075 (#13291)
* Deep & Shallow Copy

* Revert "Deep & Shallow Copy"

This reverts commit 62f75b002a21feb90c0b6be02072356b64284283.

* duplicates in a list in java

* Unit test changes

* unit test changes

* Tests change after review

* Code formatted

* code formatted

* new module core-java-lang-6

* entry in parent pom and test setup method name change

* module renamed

* parent pom entry added

* pom.xml changes reverted
2023-02-22 18:36:23 +05:30
alemoles 9089d84d2b BAEL-5912 Introduction to RoaringBitmap (#13326) 2023-02-21 21:50:33 +05:30
timis1 253c01ef4f JAVA-18445 Cleanup un-committed or un-ignored artifacts - Week 6 - 2023 (conti-1) (moved-1) (#13510)
Co-authored-by: timis1 <noreplay@yahoo.com>
2023-02-21 00:38:16 +05:30
Palaniappan Arunachalam 8f2e92dacb BAEL-6154: Migrate from Java 8 to Java 17 + tests (#13474) 2023-02-20 09:43:42 +05:30
edizor 1d7737dc5f Update README.md
[skip ci]
2023-02-19 08:02:49 +08:00
Bhaskar Ghosh Dastidar e11c4e3dbc [JAVA-6143] java copy from one hashmap to another (#13497)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-02-18 08:57:14 -08:00
Shaun Phillips ba8a44b0ca BAEL-4487 remove padding that causes non-deterministic behaviour (#13425) 2023-02-18 13:09:04 +01:00
sam-gardner 92864107b9 BAEL-6100-Add-example-code-for-integer-array-to-strings-using-streams… (#13375)
* BAEL-6100-Add-example-code-for-integer-array-to-strings-using-streams-tutorial

* BAEL-6100 remove wrongly added README update

* BAEL-6100 Add interger array to single string example

* BAEL-6100 Correct typo in test class name
2023-02-18 09:53:54 +05:30
AttilaUhrin 4acdb03e61 [BAEL-6027] Add example for Awaitility and Thread.sleep comparison (#13450)
* Add example for Awaitility and Thread.sleep comparison

* Fix unit test method name and indentation.

* Use property in pom.xml for awaitility dependency version.

---------

Co-authored-by: Uhrin Attila <attila.uhrin@frontendart.com>
2023-02-18 08:34:25 +05:30
davidmartinezbarua db2d8069e3 Merge pull request #13475 from StefSC/BAEL-5788-Private-Constructor
[BAEL-5788] Accessing Private Constructor
2023-02-17 21:03:32 -03:00
Kai Yuan 95fd310053 [2lists-to-map] Combining Two Lists into a Map in Java (#13484)
* [2lists-to-map] Combining Two Lists into a Map in Java

* [2lists-to-map] rename package
2023-02-17 10:04:37 -06:00
edizor d338276216 Update README.md
[skip ci]
2023-02-17 18:49:11 +08:00
edizor ad5d08e619 Update README.md
[skip ci]
2023-02-17 18:44:12 +08:00
edizor 2ea6076ed8 Update README.md
[skip ci]
2023-02-17 18:36:58 +08:00
edizor bbe335889c Update README.md
[skip ci]
2023-02-17 18:27:38 +08:00
edizor cd0f18fcfb Update README.md
[skip ci]
2023-02-17 17:27:55 +08:00
edizor 0b4f4d5566 Update README.md
[skip ci]
2023-02-17 17:01:56 +08:00
Loredana Crusoveanu c85a69f2cc Merge pull request #13316 from anastasiosioannidis/JAVA-17608
JAVA-7608
2023-02-15 16:26:12 +02:00
Anastasios Ioannidis ed51bc4cda JAVA-17608 Restored AtomicInteger default increment method 2023-02-15 10:14:28 +02:00
Iniubong LA e173c125f0 Difference Between Function(String… args) and Function(String[] args) (#13473) 2023-02-15 08:07:51 +01:00
Stef Serban-Cristian cb308a89e8 [BAEL-5788] Accessing Private Constructor 2023-02-13 23:42:35 +02:00
Kai Yuan 8e7055060f [is-object-array] Check if Object is an Array in Java (#13463) 2023-02-12 23:14:55 -06:00
Alexandru Borza 5b852b64b5 BAEL-6195 Find the First Embedded Occurrence of an Integer in a Java String (#13448)
* initialize arraylist with null or zeros

* configure pom parent

* move code

* delete module

* BAEL-6195

* first occurence of an integer

* review changes
2023-02-11 10:08:29 +05:30
Michael Olayemi 749cace098 BAEL-5729 Convert Hex to RGB Using Java (#13432) 2023-02-11 09:49:29 +05:30
Roger 5fb9fe4642 BAEL-5720 Java HttpClient Connection Management (#13452)
* BAEL-5642 Using @NotNull as a method parameter

* BAEL-5642 Add Spring Boot and bump spring and hibernate-validator versions

* BAEL-5720 Java HttpClient Connection Management

* BAEL-5720 Java HttpClient Connection Management

* BAEL-5720 move JavaHttpClient test to core-java-httpclient module

* BAEL-5720 move jetty-logging-properties to core-java-httpclient module

* BAEL-5720 add wiremock to pom

* Update pom.xml

* Delete jetty-logging.properties

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
2023-02-10 08:19:24 -08:00
Arya e48229dc25 Record vs Final class in Java (#13455)
* Added code for record vs final.

* Fixed a small mistake.
2023-02-09 09:58:24 -08:00
edizor a621e30de6 Update README.md
[skip ci]
2023-02-09 08:01:56 +08:00
edizor 220a73e43b Update README.md
[skip ci]
2023-02-09 07:51:27 +08:00
edizor ada858078f Update README.md
[skip ci]
2023-02-09 07:18:14 +08:00
edizor 66ebab819e Update README.md
[skip ci]
2023-02-09 07:13:07 +08:00
Dmitriy Budim 6a7adf631d [Difference Between Class.forName() and Class.forName().newInstance()] sample code (#13451) 2023-02-08 22:48:26 +01:00
timis1 940cc28ef5 JAVA-17333 Update Java Timer Article (#13423)
* JAVA-17333 Update Java Timer Article

* JAVA-17333 Rename the test class

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
2023-02-08 21:47:09 +05:30
Kai Yuan 0adee1c8d7 [streamOf-vs-intStreamRange] Understanding the Difference Between Str… (#13429)
* [streamOf-vs-intStreamRange] Understanding the Difference Between Stream.of and IntStream.range

* [streamOf-vs-intStreamRange] fix indent
2023-02-07 18:49:49 -06:00
vunamtien 35e516d31e BAEL-6049-validate-ipv4-address (#13287)
* validate ipv4

* add unit test

* add more unit tests

* add more unit tests

* add more unit test

---------

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2023-02-06 18:54:29 +00:00
Kai Yuan c0be80a64a [instanceOf-stream] Checking instanceof in Java Stream (#13419) 2023-02-04 10:12:16 -06:00
Loredana Crusoveanu 03aa2d8920 Merge pull request #13416 from edizor/master
Update README
2023-02-03 17:32:16 +02:00
Ulisses Lima 98560f9d93 calling start() (#13417) 2023-02-02 22:43:55 +01:00
edizor 5ae8fa5069 Update README.md
[skip ci]
2023-02-02 23:29:26 +08:00
edizor c31505b584 Update README.md
[skip ci]
2023-02-02 23:27:36 +08:00
edizor 8765a412dc Update README.md
[skip ci]
2023-02-02 23:20:20 +08:00
edizor ccd2927e3a Update README.md
[skip ci]
2023-02-02 23:00:22 +08:00
edizor 6c90868613 Update README.md
[skip ci]
2023-02-02 22:55:14 +08:00
edizor 04ad33b9ba Update README.md
[skip ci]
2023-02-02 22:37:10 +08:00
Kai Yuan cb98df168b [abs-int-diff] Return Absolute Difference Between Two Integers in Java (#13379) 2023-02-01 21:01:09 -06:00
Olu c919c5e70c BAEL 5932 - Callback Functions in Java (#13364) 2023-02-01 08:04:40 +01:00
Kai Yuan 226fa47606 [strArrayToIntArray] convert str array to int array (#13217) 2023-01-31 20:11:14 -06:00
davidmartinezbarua ba8f9a6437 Merge pull request #13077 from sebx59/master
BAEL-5727 - Determine If a Class Implements an Interface in Java
2023-01-31 17:25:50 -03:00
sebx59 587d69af32 updated Unit test to add assertions examples 2023-01-31 09:23:52 +01:00
Bhaskar Ghosh Dastidar 9d3667ac77 [JAVA-5783] stream to iterable (#13369)
* [JAVA-5783] stream to iterable

* [JAVA-5783] tests refactor

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-01-31 08:16:11 +05:30
alemoles b40a061969 BAEL-5924 Java 8 Stream with Batch Processing Support (#13366) 2023-01-30 22:49:57 +05:30
Loredana Crusoveanu aab7f72429 Merge pull request #13363 from timis1/JAVA-17293
JAVA-17293 Update Java Mail articles
2023-01-30 13:08:45 +02:00
Alexandru Borza 068d3cc439 BAEL-6146 - Initialize an ArrayList with All Zeroes or Null in Java (#13368)
* initialize arraylist with null or zeros

* configure pom parent

* move code

* delete module
2023-01-29 14:51:12 -08:00
Honey Kakkar aecdc1a38d Fix link to the previous article in README.md
Currently, "prev" points to "/core-java-modules/core-java-collections-1" which is not a valid relative directory in repository.
2023-01-29 13:51:18 -05:00
Kai Yuan 7605f8474c [int-zero-or-null] Check if an Integer Value is null or Zero in Java (#13332) 2023-01-28 11:29:20 -06:00
Loredana Crusoveanu f75949b0e4 Merge pull request #13359 from ulisseslima/bael-5999-quickfix_compile-string
BAEL-5999 - Compiling and Executing Code From a String in Java - quick fix
2023-01-28 17:27:19 +02:00
Iulian Timis de1c280736 JAVA-17293 Fix java version problem for java bind 2023-01-28 16:16:01 +02:00
Iulian Timis 601af9b61a JAVA-17293 Update Java Mail articles for core-java-networking-3 2023-01-28 13:15:21 +02:00
Iulian Timis 2db1dd4a60 JAVA-17293 Update Java Mail articles 2023-01-28 12:47:15 +02:00
Kai Yuan 185093c26a [comp-str-enum] Comparing a String to an Enum Value in Java (#13349) 2023-01-27 20:56:13 -06:00
Olu d7e857f427 BAEL 5932 - Callback Functions in Java (#13335) 2023-01-27 21:37:47 +01:00
Ulisses Lima b389ecad46 inverting condition to match the article 2023-01-27 13:32:59 -03:00
Michael Olayemi b5d8f4e93c BAEL-5952-Java HttpClient - Map Json Response to Java Class (#13234)
* Java HttpClient - Map Json Response to Java Class

* BAEL-5952-Java HttpClient - Map Json Response to Java Class

* BAEL-5952-Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class

* Java HttpClient - Map Json Response to Java Class
2023-01-27 12:52:01 +05:30
edizor ad45161555 Update README.md
[skip ci]
2023-01-26 16:21:14 +08:00
edizor ba0889aa72 Update README.md
[skip ci]
2023-01-26 16:16:09 +08:00
edizor 47698ae01c Update README.md
[skip ci]
2023-01-26 16:12:14 +08:00
edizor eb81632bc7 Update README.md
[skip ci]
2023-01-26 16:03:26 +08:00
edizor 1a4312f22b Update README.md
[skip ci]
2023-01-26 15:57:56 +08:00
Stef Serban-Cristian c467321957 [BAEL-5788] Accessing Private Constructor 2023-01-24 11:25:30 +02:00
Kilian Schneider 69f6e11088 BAEL-6091 structured concurrency (#13297) 2023-01-23 12:57:00 -08:00
timis1 ea9bf9ebeb JAVA-17420 Update The transient Keyword in Java Article (#13321)
Co-authored-by: Iulian Timis <iulian.timis@tora.com>
2023-01-23 23:57:35 +05:30
Kai Yuan 0162d98907 [bigDecimal-x-int] Multiply a BigDecimal By an Integer in Java (#13320) 2023-01-23 10:41:19 -06:00
hajarrs 4b3a693263 Check If Command Line Arguments Are Null in Java (#13246) 2023-01-23 19:04:39 +05:30
Vali Tuguran fa6b78233c BAEL-6040 Add Java List tests. (#13255)
* BAEL-6040 Add list interface example.

* BAEL-6040 Updated list iterator.

* BAEL-6040 Removed logger import.

* BAEL-6040 Added List interface tests.

* BAEL-6040 Update tests success names.

* BAEL-6040 Small names refactoring.

* BAEL-6040 Add new core-java-collections-5 module.

* BAEL-6040 Create module core-java-collections-list-5.

* BAEL-6040 Create module core-java-collections-list-5.
2023-01-21 21:39:34 -07:00
Azhwani 3b770c4dee BAEL-6044: Fix the IllegalArgumentException: No enum const class (#13171) 2023-01-21 16:16:18 +01:00
edizor b2731db3ef Update README.md
[skip ci]
2023-01-20 16:31:09 +08:00
edizor 5e420e34e1 Update README.md
[skip ci]
2023-01-20 16:27:49 +08:00
edizor 9b0daac640 Update README.md
[skip ci]
2023-01-20 16:24:48 +08:00
edizor a028f31823 Update README.md
[skip ci]
2023-01-20 16:21:36 +08:00
edizor a8b953195d Update README.md
[skip ci]
2023-01-20 16:17:17 +08:00
edizor 0c3db032b8 Update README.md
[skip ci]
2023-01-20 16:11:34 +08:00
edizor cf1f2e87c2 Merge branch 'eugenp:master' into master 2023-01-20 16:10:28 +08:00
Iniubong LA 305b369f5d arthurshur@gmail.com (#13275)
* Creating a deep vs shallow copy of an object in Java

* Creating a deep vs shallow copy of an object in Java

* Baeldung article converting number bases

* Baeldung article converting number bases

* edits made to Converting a Number from One Base to Another in Java

* added braces to oneliners

* added precondition to check input
2023-01-19 11:03:51 -08:00
Bhaskar Ghosh Dastidar fd1c286570 [JAVA-5730] convert list of objects to list of strings (#13166)
* [JAVA-5730] convert list of objects to list of strings

* [JAVA-5730] added new unit tests with null and non-null lists. modified pom.xml with java version to 16

* [JAVA-5730] simplified User class and formatted the codebase

* [JAVA-5730] added module in jdk-9 and above profile

* [JAVA-5730] removed arraylist module from other profiles of core-java pom

* [JAVA-5730] java util opened for reflection surefire plugin

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-01-18 19:53:05 -07:00
edizor 00913e061a Update README.md
[skip ci]
2023-01-19 07:44:33 +08:00
edizor f08815a84f Update README.md
[skip ci]
2023-01-19 07:30:26 +08:00
IfThen2 eef1e05017 code for BAEL-5999 Converting String Object to Java Compilable Code (#13179)
* code for BAEL-5999 Converting String Object to Java Compilable Code

* move code from core-java-jvm-2 to core-java-jvm-3
fix unit test name
fix core-java-jvm-3 test directory structure
disable non-working unit tests from core-java-jvm-3
2023-01-18 18:24:00 +05:30
alemoles de6d2bc25c BAEL-5924 Java 8 Stream with Batch Processing Support (#13203) 2023-01-18 18:18:57 +05:30
HARDEMAN Sébastien 33474c6096 case correction 2023-01-18 10:39:54 +01:00
Kai Yuan a4f6d89cc7 [store-triple-in-list] Storing Data Triple in a List in Java (#13295)
* [store-triple-in-list] Storing Data Triple in a List in Java

* [store-triple-in-list] method name "give..."->"given..."
2023-01-17 17:15:26 -06:00
jsgrah-spring c217f7e95c JAVA-15621, Potential issue in "Guide to UUID in Java" article. (#13271)
* JAVA-15621, Potential issue in "Guide to UUID in Java" article.

* JAVA-15621, Keep the raw strings in the article to make it easy for users to understand.

* JAVA-15621, Keep the raw strings in the article to make it easy for users to understand.

Co-authored-by: jogra <joseph.sterling.grah@miles.no>
2023-01-16 23:07:14 +05:30
Thiago dos Santos Hora 227fa03142 BAEL-5959: Adjust code style (#13299)
* BAEL-5959: Monad in Java

* Fix test name

* Fix code style
2023-01-16 08:30:08 -08:00
Kai Yuan c0157effb0 [List-CaseInsenContains] Case-Insensitive Searching in ArrayList (#13280) 2023-01-13 20:34:54 -06:00
panos-kakos 13097b458f Java 16961 (#13236)
* [JAVA-16961] Moved code for article "Create an Empty Map in Java"

* [JAVA-16961] Alter README.md

* [JAVA-16961] Moved code for article "Sorting a Hashset in Java"

* [JAVA-16961] Added links to README.md files

* [JAVA-16961] Revert link changes

* [JAVA-16961] Replaced junit4 with junit5 annotations

* [JAVA-16961] test build

* [JAVA-16961] Added junit annotations

* [JAVA-16961] Added links

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-01-13 20:07:27 +05:30
pedrolopes f6f63673a9 BAEL-5873: Check If All the Variables of a Class Are Null (#13285)
* model classes. unit tests. apache lang3 dependency.

* fix PR build
2023-01-12 18:28:36 -08:00
Thiago dos Santos Hora 3c12edb5f6 BAEL-5959: Monad in Java (#13278)
* BAEL-5959: Monad in Java

* Fix test name
2023-01-12 18:23:34 -08:00
Loredana Crusoveanu 86aedea66b Merge pull request #13273 from edizor/master
Update README
2023-01-11 13:09:01 +02:00
Vartika Nigam dcbb336236 added an example of anonymous class and lambda expression (#13241)
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
2023-01-11 10:26:58 +01:00
edizor b227ad01e3 Create README.md
[skip ci]
2023-01-11 15:35:30 +08:00
edizor 7670976877 Update README.md
[skip ci]
2023-01-11 15:27:56 +08:00
edizor b7cd83a56a Update README.md
[skip ci]
2023-01-11 15:19:44 +08:00
edizor bc9b4ab88b Update README.md
[skip ci]
2023-01-11 15:05:55 +08:00
edizor 14594c2b94 Update README.md
[skip ci]
2023-01-11 14:48:42 +08:00
Iniubong LA d2f52b059f arthurshur@gmail.com (#13265)
* Creating a deep vs shallow copy of an object in Java

* Creating a deep vs shallow copy of an object in Java

* Baeldung article converting number bases

* Baeldung article converting number bases
2023-01-09 13:05:23 -08:00
chrisjaimes b6075009b0 BAEL-5822 printstream vs printwriter (#13199)
* BAEL-5822 pr with streams implementation, unit test and resource file for testing

* fix unit tests names

* swap arguments in assertion

Co-authored-by: Christian Jaimes <christian.jaimes@oracle>
2023-01-09 11:52:25 +01:00
edizor 66f5823c5d Merge branch 'eugenp:master' into master 2023-01-07 15:43:14 +08:00
Kilian Schneider 0a9424696a feat BAEL-6092 Record Patterns (#13243)
* feat BAEL-6092 Record Patterns

* Update pom.xml

* Update pom.xml

* Add additional Switch Test Case
2023-01-06 14:12:38 -08:00
Kai Yuan 962ed719ac [clsTypeByString] get class object from a string (#13233) 2023-01-05 21:29:23 -06:00
edizor 16deccb5ba Update README.md
[skip ci]
2022-12-28 17:45:03 +08:00
Shaun Phillips ab892ba982 BAEL-4487 Add Crypto Exceptions (#13183) 2022-12-28 08:52:02 +01:00
panos-kakos d01629a246 Java 16960 (#13201)
* [JAVA-16960]

* [JAVA-16960]

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-12-28 00:28:30 +05:30
Loredana Crusoveanu 9215eee368 Merge pull request #13184 from edizor/master
Update README
2022-12-23 16:39:32 +02:00
Grzegorz Piwowarek 20e0ff4aa3 Fix givenOneThreadIsWriting_whenAnotherThreadWritesAtSameKey_thenWaitAndGetCorrectValue (#13186) 2022-12-22 23:18:30 +01:00
pedrolopes 0a5a54f6d0 BAEL-5946: Fix unit tests (#13187)
* consistent read unit test

* unit test to show  consistency in writing to the same key of map

* testing writes at different map key

* fix to bugs on test 1 and 2

* removing repeated tests
2022-12-22 23:18:05 +01:00
Kai Yuan efad3fe07f [BAEL-6051_intListToStrList] convert List<Integer> to List<String> (#13169) 2022-12-22 15:23:29 -06:00
freelansam f5131d9ad0 JAVA-15822: Which sub-modules aren't being built (#13153)
* JAVA-15822: Which sub-modules aren't being built

* JAVA-15822: build error

* JAVA-15822: build error

* modified comment for gcp-firebase
2022-12-23 00:33:54 +05:30
edizor fb17e68942 Update README.md
[skip ci]
2022-12-22 22:33:40 +08:00
edizor f699da12c6 Update README.md
[skip ci]
2022-12-22 22:29:03 +08:00
edizor aa58d16e8f Update README.md
[skip ci]
2022-12-22 22:25:58 +08:00
edizor 65cc5b6d05 Update README.md
[skip ci]
2022-12-22 22:13:12 +08:00
edizor 3f0c4c27a2 Update README.md
[skip ci]
2022-12-22 21:57:36 +08:00
Loredana Crusoveanu 76f06cdd9c Merge pull request #12997 from press0/master
fix getLogger class name
2022-12-22 15:37:35 +02:00
Azhwani c71ade5790 BAEL-6023: Throwing an Exception If an Optional Is Present (#13116) 2022-12-21 17:18:46 +01:00
freelansam 456652e02b JAVA-16563: Fix formatting of POMs (#13175) 2022-12-20 22:37:54 +05:30
pedrolopes 6bb5598904 BAEL-5946: Reading and Writing With a ConcurrentHashMap (#13163)
* consistent read unit test

* unit test to show  consistency in writing to the same key of map

* testing writes at different map key
2022-12-19 22:02:08 +01:00
Ulisses Lima 88f2eca118 BAEL 5842 - Calling JMX MBean Method from a Shell Script (#13028)
* bael 5842

* bael-5842 - editor review 1
2022-12-19 15:29:17 +01:00
cesarevalenti90 0fd77aa664 [BAEL 5909]-Callable vs Supplier and When to Use Them in Java (#13041)
* Added test class for a simple shallow copy and deep copy

* Added test class for a simple shallow copy and deep copy

* refactor naming of test method

* formatted

* refactor test whenIsAShallowCopyDoneByCopyConstructor_thenImmutableObjectWillNotChange

* Renamed package and added md file

* refactor README.md

* first push

* refactor

* Revert "refactor README.md"

This reverts commit eae77c453ba0bf2af62bad52dc1ed61d07931e34.

* Revert "Renamed package and added md file"

This reverts commit 42c6f97cbde39cc0a5e0bacf34f86a32ded4f4aa.

* Revert "refactor test whenIsAShallowCopyDoneByCopyConstructor_thenImmutableObjectWillNotChange"

This reverts commit 44fb57fe2b51857f960dc216d33508e718e5414f.

* Revert "formatted"

This reverts commit 44be87ef25e566b8e9175cb0fdeed7f0ef485dd3.

* Revert "refactor naming of test method"

This reverts commit 6133c31057e39b19c4978f960cda1c0ba5559aae.

* Revert "Added test class for a simple shallow copy and deep copy"

This reverts commit 2cae083578883ae693d1c5e76fd4948e213e9ea0.

* Revert "Added test class for a simple shallow copy and deep copy"

This reverts commit f43312e2c1979410409f46020a3f7d555e11e966.

* Merge prohect java-supplier-callable to project core-java-lambdas

* adjusted package name

* removed AbstractAgeCalculator.java

* added test for supplier-callable

Co-authored-by: Cesare <cesare.valenti@hotmail.com>
2022-12-19 19:23:17 +05:30
Tapan Avasthi 39f29ec690 BAEL-6015: Split String by Whitespace in Java (#13146)
- Using split() method of String class
- Using StringTokenizer class
- Using split() utility method of the StringUtils class

Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2022-12-18 22:07:11 -06:00
ACHRAF TAITAI 488bb057d6 BAEL-5927: Sorting a HashSet in Java (#13100)
* BAEL-5927: Sorting a HashSet in Java

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)
2022-12-17 20:34:14 +05:30
edizor 79255cb2c5 Update README.md
[skip ci]
2022-12-15 16:40:17 +08:00
edizor 94e813596a Update README.md
[skip ci]
2022-12-15 16:36:11 +08:00
edizor 3e0e9e6d83 Update README.md
[skip ci]
2022-12-15 16:25:54 +08:00
edizor bf0356fe47 Update README.md
[skip ci]
2022-12-15 16:19:40 +08:00
edizor 082df236be Update README.md
[skip ci]
2022-12-15 16:11:58 +08:00
edizor 6076e9622b Update README.md
[skip ci]
2022-12-15 15:53:18 +08:00
Bogdan Pistol df30c2986f https://jira.baeldung.com/browse/BAEL-5871 added sample code used in article (#12986) 2022-12-15 09:33:07 +05:30
Michael Olayemi abd9f8a38b BAEL-5979 Instanceof Alternatives (#13082)
* simple-thymeleaf-expression

* expression-update

* instanceof

* instanceof

* instanceof

* update

* Update pom.xml

* Update pom.xml

* instanceof

* update

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* instanceofnew

* update

* pom

* Revert "pom"

This reverts commit c5075e6ba7e1e91159864d57bcbc18dd90314e16.

* Revert "Update pom.xml"

This reverts commit 7dd02df1aea201572fb64d8bc4a2990a94b6b4c0.

* Revert "Revert "Update pom.xml""

This reverts commit a02a1f67d16eb0bc781cc588af48f36fcc93d601.

* Update pom.xml

* Revert "Update pom.xml"

This reverts commit 7dd02df1aea201572fb64d8bc4a2990a94b6b4c0.

* Update pom.xml

* JAVA-8436: Remove AssertJ depenendency from the child modules - part 4

* Update pom.xml

* JAVA-8436: Remove AssertJ depenendency from the child modules - part 4

* BAEL-5979 Instanceof Alternatives
2022-12-12 20:56:43 -06:00
vunamtien 9c8d1d127d BAEL-5919-java-print-pascal-triangle (#13155)
* pascal triangle

* pascal triangle

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-12-12 11:24:54 +01:00
Azhwani a288f8db7e BAEL-5844: Convert Anonymous Class into Lambda in Java (#13088) 2022-12-12 08:53:16 +01:00
apeterlic 29d97308f6 Add Type Parameter vs Wildcard in Java Generics (#12988)
* Add Type Parameter vs Wildcard in Java Generics

* Fix Logger variable and code format

* Update Cat class

* Add missing import

* Add warning comment
2022-12-12 08:35:27 +01:00
Loredana Crusoveanu 897a98ada4 Merge pull request #13145 from edizor/master
Update README
2022-12-10 15:50:02 +02:00
kwoyke 1d52e2cc86 Merge pull request #13139 from hkhan/JAVA-16711-logging-cleanup
[JAVA-16711] Remove unnecessary system out logging
2022-12-10 13:07:34 +01:00
Loredana Crusoveanu 2285190be6 Merge pull request #13063 from eugenp/sam/move-article-files
[BAEL-5684] Move article files to new module
2022-12-08 16:04:12 +02:00
edizor c9ceba772d Update README.md
[skip ci]
2022-12-08 15:43:38 +08:00
edizor 0276e154a5 Update README.md
[skip ci]
2022-12-08 15:38:32 +08:00
edizor 290eefa062 Merge branch 'eugenp:master' into master 2022-12-08 15:21:13 +08:00
Haroon Khan e367437bb7 [JAVA-16711] Remove unnecessary system out logging 2022-12-07 21:57:15 +00:00
kwoyke 85fded9b10 Merge pull request #13118 from freelansam/JAVA-16260
JAVA-16301: Check Article Code Matches GitHub
2022-12-07 20:59:38 +01:00
HARDEMAN Sebastien 61b5922c60 Merge branch 'master' of https://github.com/sebx59/tutorials 2022-12-07 15:53:55 +01:00
HARDEMAN Sebastien 9a42f64454 rework following Saajan Nagendra's review 2022-12-07 15:53:34 +01:00
edizor 671116d6ab Update README.md
[skip ci]
2022-12-07 19:31:38 +08:00
edizor 4c752a371f Update README.md
[skip ci]
2022-12-07 19:25:14 +08:00
Dhawal Kapil e9a11ae9ed JAVA-16288 Fixed core-java-jndi unit test (#13135)
* JAVA-16288 Fixed core-java-jndi unit test

* JAVA-16288 Disabled
givenNoContext_whenLookupObject_thenThrowNoInitialContext test
2022-12-07 00:20:28 +05:30
davidmartinezbarua 0a0d532995 Merge pull request #13099 from etrandafir93/features/BAEL-5819-java_collections_pecs
BAEL-5819: java collections pecs
2022-12-06 15:29:43 -03:00
Bhaskar Ghosh Dastidar e858d14b86 [JAVA-6029] reversing a stack (#13122)
* [JAVA-6029] reversing a stack

* [JAVA-6029] un-necessary file changes removed

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2022-12-06 16:56:02 +01:00
Loredana Crusoveanu 70e1917f1e Merge pull request #13130 from collaboratewithakash/master
backlink fixed
2022-12-05 17:14:23 +02:00
collaboratewithakash b68aaace05 backlink fixed 2022-12-05 16:36:12 +05:30
alemoles 316cd48b48 BAEL-5960 - Functors in Java (#13125) 2022-12-04 23:02:24 -08:00
Azhwani 5f939afaf0 BAEL-5931: Default Capacity of ArrayList (#13110) 2022-12-02 18:50:50 +01:00
freelansam 290581f15b JAVA-16301: Check Article Code Matches GitHub 2022-12-02 18:53:08 +05:30
freelansam 998415cd47 JAVA-16301: Check Article Code Matches GitHub 2022-12-02 18:45:30 +05:30
Arya c22f091771 Added the code for "Errors and Exceptions in Java". (#13104)
* Added the code for "Errors and Exceptions in Java".

* Added the unit tests.
2022-11-30 11:51:46 -08:00
jsgrah-spring 21c42ebebc JAVA-12387. Correct/Rename THREADS to TASKS and int threads to int tasks. (#13084) 2022-11-30 23:19:52 +05:30
edizor de10836e67 Update README.md
[skip ci]
2022-11-30 07:43:45 +08:00
edizor 1ba60da892 Update README.md
[skip ci]
2022-11-30 07:26:23 +08:00
edizor 9b06e15e96 Update README.md
[skip ci]
2022-11-30 07:24:05 +08:00
edizor a8f68d47af Update README.md
[skip ci]
2022-11-30 07:19:54 +08:00
Kilian Schneider 4d330a1b85 BAEL-5785 Map.of() vs Map.ofEntries() test (#13064)
* BAEL-5785 Map.of() vs Map.ofEntries() test

* Update pom.xml

* Update pom.xml

* Add immutable test case

* Update map naming
2022-11-28 20:33:35 -06:00
alemoles 965cf501f5 BAEL-5981 - String Interpolation in Java (#13092) 2022-11-27 14:28:44 -08:00
Gaetano Piazzolla 53dbea8d56 BAEL-5921 | Guide to Java Priority Queue (#13087)
* BAEL-5921 | Guide to Java Priority Queue

* BAEL-5921 | Adressed comments

* BAEL-5921 | Fixed test

* BAEL-5921 | Fixed test
2022-11-27 20:00:09 +01:00
emanueltrandafir1993 d804060040 BAEL-5819: java collections pecs 2022-11-27 19:02:37 +01:00
Olu f191427bea Convert between LocalDateTime and ZonedDateTime - BAEL-5879 (#13057)
* Creating a Deep vs Shallow Copy of an Object in Java

* completed tests for LinkedHashSet

* update

* updated PR

* swapped the order of arguments for assertEquals()

* completed code for Convert between LocalDateTime and ZonedDateTime

* fixed module name

* update

* update

* added more assertions

* update

* added more example

* update

* jenkin build error fix

* jenkin build error fix

* jenkins build fix

* fixed suggested comments

* update

* update
2022-11-27 18:16:22 +05:30
pedrolopes 790974461f BAEL-5922 User for Optional in Java (#13051)
* repositories. model class. initial tests

* tests declarative api

* removing from module java 11

* copy to optional module

* fix assertEquals import
2022-11-27 17:38:38 +05:30
edizor f43520bdd3 Update README.md
[skip ci]
2022-11-25 15:59:07 +08:00
edizor 66dbd3105e Update README.md
[skip ci]
2022-11-25 15:22:31 +08:00
edizor 065358af8f Update README.md
[skip ci]
2022-11-25 14:46:53 +08:00
edizor 7377c93d7a Update README.md
[skip ci]
2022-11-25 14:42:29 +08:00
edizor 802a0d3de7 Update README.md
[skip ci]
2022-11-25 14:36:06 +08:00
edizor ca9e3d864b Update README.md
[skip ci]
2022-11-25 14:31:33 +08:00
Bhaskar Ghosh Dastidar d74259b014 [JAVA-5980] First Non Repeating Character (#13072)
* [JAVA-5980] First Non Repeating Character

* [JAVA-5980] renamed UnitTest class

* [JAVA-5980] changed file location to core-java-string-algorithms-3

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2022-11-24 15:41:35 -08:00
panos-kakos fd1bf7a029 [JAVA-13962] Align code with article + clean up (#13012)
* [JAVA-13962] Align code with article + clean up

* [JAVA-13962] Clean up

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-11-25 00:53:09 +05:30
sebx59 a30a85ddd4 Merge branch 'eugenp:master' into master 2022-11-24 10:55:33 +01:00
HARDEMAN Sebastien 28f0b329e7 BAEL-5727 - Determine If a Class Implements an Interface in Java
Data model and unit test Class for the BAEL-5727 - Determine If a Class Implements an Interface in Java
2022-11-24 10:49:09 +01:00
Harry9656 21c735364e [JAVA-4543]: Improve Guide to UUID in Java (#12962)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-11-23 17:32:29 +00:00
Harry9656 0ecc5b2c11 [Java-5762]: Using Pipes in Runtime.exec() Command (#12941)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-11-23 17:31:21 +00:00
Harry9656 66fb7ea877 JAVA-5735: Appending a new File to a ZIP file (#13044) 2022-11-22 00:44:18 -07:00
Saajan N e5a62781ce Moved code for BAEL-5752 to new module 2022-11-21 18:06:30 +05:30
Ssam 5e08af14a1 Include new module 2022-11-20 12:17:56 +00:00
Ssam 3c57c4d566 move article files to new module 2022-11-20 12:15:45 +00:00
Songting Xu 032b8e2d64 [BAEL-5840] Sort a collection of Objects on multiple fields (#12950)
* [BAEL-5840] Sort a collection of Objects on multiple fields

* Fix maven plugin version

* Fix pom again

* Fix again

* Move to core-java-collections-4 module

* Remove unused files

* Test renaming

* Handle NPE

* Use Nonnull annotation

* remove redundant dependency

* remove redundant scope

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

* BAEL-5801 - replaced record to class

* BAEL-5801 - added spring data dependency

* moved source file in java17 module

* BAEL-5801 updated pom.xml configurations

* BAEL-5801 moved to correct java17 module

* updated example

* BAEL-5801 - making iterator instance strong typed

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

* code refactored

* added code for executor service thread pools

* moved the files to a single module

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

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

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

* [JAVA-13960] Rename classes

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

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

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

* BAEL-5670: Add README.md file

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

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

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

* BAEL-5790 - Renamed unit test

* BAEL-5790 | fixed test

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

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

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

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

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

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

* BAEL-5790 | renamed class

* BAEL-5790 | spaces

* BAEL-5790 | renaming class

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

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

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

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

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

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

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

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

* BAEL-5790 - renamed unit test

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

* completed tests for LinkedHashSet

* update

* updated PR

* swapped the order of arguments for assertEquals()
2022-10-31 14:08:59 -07:00
Kai Yuan 146ffa71d0 [URI-Creation] Difference Between URI.create() and new URI() (#12937)
* [URI-Creation] Difference Between URI.create() and new URI()

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

* completed tests for LinkedHashSet

* update

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

Ready for review.

* BAEL-5678 - review

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

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

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

* [JAVA-13966] fixed tests

* [JAVA-13966] fixed tests

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

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

* [JAVA-13966] Fixed naming convention for pmd

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

* [JAVA-13966] Fix tests

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

* formatted the code

* formatted the code

* move code examples to other modules

* corrected the pkg name

* corrected the pkg name

* fixed compile time issue

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

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

* Refactor sheep names.

* BAEL-5733 Add infinity in java test.

* Removed test article code.

* BAEL-5733 Refactor unit test classname.

* BAEL-5733 Remove readme entry.

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

* Refactor sheep names.

* BAEL-5733 Add infinity in java test.

* Removed test article code.

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

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

* update indentaions

* Create a BMI Caclualtor in Java

* Create a BMI Caclualtor in Java

* Delete unused packages

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5708: Create a BMI Calculator in Java

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

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

* Deleting files from core-java-io

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

* Removed files from core-java-11-2

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

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

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

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

* BAEL-5751 moved code to a different module

* BAEL-5751 using assertArrayEquals

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

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

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

code samples

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

update project module

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

code samples

* BAEL-5754 update unit test class name

* BAEL-5754 update unit test methods naming

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

* BAEL-5765 updated class name as per the convention

* BAEL-5765 updated test cases naming strategy

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

* cleaned up the Main method

* added unit test for uuid validation

* renamed unit test method name

* formatted unit test

* removed unneeded file

* replaced gradle by maven

* removed gradle project

* moved project

* added readme file

* segregated unit tests by validator type.

* inlined the validating logic inside the unit tests

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

* renamed test

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

* update indentaions

* Create a BMI Caclualtor in Java

* Create a BMI Caclualtor in Java

* Delete unused packages

* BAEL-5708: Create a BMI Calculator in Java

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

* BAEL-5765 updated class name as per the convention

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

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

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

* moving SpringBootPersistenceApplication class to its own package

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

* Spring Data MongoDB - Configure Connection

Ready for revision.

* fixed tests to reflect article changes

* BAEL-5657

* reverting BAEL-5657

* reverting BAEL-5657

* ready for review

* removing bael-5366

* removing bael-5366

* removing extra blank space

* bael-5666

editor review

* editor review

* long literals
* junit 5
* private constructor for utils

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

First draft of the article example

* BAEL-5699

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

* Fix - replace System.out with Logger

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

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

* Update RemoveLastChar.java

* Update and rename RemoveLastCharTest.java to RemoveLastCharUnitTest.java

Co-authored-by: Grzegorz Piwowarek <gpiwowarek@gmail.com>
2022-09-12 12:49:27 +02:00