Commit Graph

3331 Commits

Author SHA1 Message Date
ovidiu-mihai98 db9dc5f286 [BAEL-6794] Is Java Reflection Bad Practice? 2023-09-30 23:21:21 +03:00
Anton Dalagan 306f1335b8 Bael 6962 convert double to float in java (#14883)
* Commit 1 - Anton Dalagan Code for Evaluation article. Contains Unit tests, domain class, and App main method.

* BAEL-6962 - Created unit test, and updated pom.xml

* BAEL-6962 - Removed files unrelated to the article

* BAEL-6962 - Added a declartions for float and double in diff class. Updated unit tests.
2023-09-30 08:39:12 -07:00
Loredana Crusoveanu b63f63c7da Merge pull request #14879 from edizor/master
Update README
2023-09-30 18:32:56 +03:00
Loredana Crusoveanu fad02f73d2 BAEL-6847 move article 2023-09-30 18:08:57 +03:00
Liam Williams 95a63c881c Merge pull request #14827 from rajat-garg/rg/get-extension-from-mimetype
[BAEL-6730] Address review comments
2023-09-30 14:59:57 +01:00
Eugene Kovko 9e5c656d84 BAEL-6781: Skip First Iteration in Java Foreach (#14876) 2023-09-29 14:39:41 -07:00
edizor 8faea6ae13 Create README.md
[skip ci]
2023-09-30 00:33:33 +08:00
edizor aebe7fa26b Update README.md
[skip ci]
2023-09-30 00:29:54 +08:00
edizor ac1d97801d Update README.md
[skip ci]
2023-09-30 00:27:07 +08:00
edizor 6a7f88cbbd Update README.md
[skip ci]
2023-09-30 00:06:01 +08:00
Niket Agrawal d109a6bcb5 Updated POM Formatting 2023-09-29 21:04:56 +05:30
Niket Agrawal 29bfc410bc Update pom.xml 2023-09-29 21:03:32 +05:30
edizor dd1503b6e0 Update README.md
[skip ci]
2023-09-29 23:19:11 +08:00
edizor c731ff9446 Update README.md
[skip ci]
2023-09-29 23:12:27 +08:00
edizor 3d09f92af7 Update README.md
[skip ci]
2023-09-29 23:02:38 +08:00
edizor 14971d6017 Update README.md
[skip ci]
2023-09-29 22:59:09 +08:00
edizor 9594616562 Update README.md
[skip ci]
2023-09-29 22:56:54 +08:00
edizor 823d0efb33 Create README.md
[skip ci]
2023-09-29 22:16:10 +08:00
edizor b2295ce3b7 Update README.md
[skip ci]
2023-09-29 22:14:32 +08:00
Vini d00863eeb2 Merge pull request #14720 from lajka/master
BAEL-6871: Using the Apache Commons Lang 3 for Comparing Objects in Java
2023-09-29 08:33:32 +02:00
timis1 a50bdf6816 JAVA-25350 Potential issue in "Sorting Java Map in Descending Order" article 2023-09-29 09:28:16 +03:00
Zahid Khan 0fbf2beda5 Character generation. (#14871)
* Add of unit test.

* Add of unit test.

* Update and rename GenerationOfAlphabetsUsingForVariousWaysUnitTest.java to GenerationOfCharactersUsingForVariousWaysUnitTest.java

* Replace the variable name

* Update GenerationOfCharactersUsingForVariousWaysUnitTest.java

* Rename of package

* Rename of file and package.
2023-09-29 11:06:54 +05:30
Zahid Khan cf058499c4 Generation of the Sequence numbers (#14589)
* Add of unit test.

* Add of unit test.

* Update and rename GenerationOfAlphabetsUsingForVariousWaysUnitTest.java to GenerationOfCharactersUsingForVariousWaysUnitTest.java

* Replace the variable name

* Update GenerationOfCharactersUsingForVariousWaysUnitTest.java
2023-09-29 09:17:51 +05:30
Eugene Kovko ed4b43ce98 BAEL-6705: Check if a String is Strictly Alphanumeric With Java (#14865)
* BAEL-6705: Check if a String is Strictly Alphanumeric With Java

* BAEL-6705: Rename a Class

* BAEL-6705: Fix isAlpanumeric Logic

* BAEL-6705: Fix alphanumericIterationWithCharacterChecks Logic

* BAEL-6705: Expose isAlphanumeric method

* BAEL-6705: Added isAlphanumeric test
2023-09-28 15:05:22 -07:00
Vlad 204555a479 Bael 6961 Unnamed Patterns and Variables (#14829)
* BAEL-6961 Added first code snippets

* Added code for article

* Added debug configuration

* Build trigger

---------

Co-authored-by: Vlad <vlad.galuska@hibyte.ro>
2023-09-28 09:05:39 -07:00
Eugene Kovko eabaf2764d BAEL-6773: Get the OS Username in Java (#14848)
* BAEL-6773: Removed Ignored Tests

* BAEL-6773: Initializing a New Module

* BAEL-6773: user.name Property Example

* BAEL-6773: Removed Unused Dependencies
2023-09-28 09:04:54 -07:00
Sam Gardner fe9c78ceb8 BAEL-6895 Add code for truncating a double to two decimal places 2023-09-28 16:29:51 +01:00
Niket Agrawal 27d104d197 Update pom.xml 2023-09-28 11:55:40 +05:30
Niket Agrawal 15ca62982f Updated pom formatting 2023-09-28 11:21:46 +05:30
Niket Agrawal 20d6dbaef3 Updating spelling mistake 2023-09-28 11:14:33 +05:30
Niket Agrawal 5bc91182a5 Update pom.xml 2023-09-28 11:13:45 +05:30
Niket Agrawal ca1e69ae86 Review Comments 2023-09-27 22:34:49 +05:30
Michael Olayemi 2dc953dcad Code Snippets in Java API Documentation (#14792) 2023-09-27 22:02:18 +05:30
@hangga e9536ff0c4 [Update] set DEFAULT_TIMEOUT to 1000 2023-09-27 09:20:07 +07:00
Kai Yuan ef3c6c0e0b [list-ic-contains] Check if a List Contains a String Element While Ignoring Case (#14826) 2023-09-26 20:08:30 -05:00
@hangga 78d8f62ef7 [Add] completablefuture timeout test 2023-09-26 10:05:04 +07:00
Bhaskar Ghosh Dastidar c689708383 [BAEL-6956] string templates (#14825)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-24 18:32:12 -06:00
rajatgarg d2ede7f67c Address review comments 2023-09-25 01:34:58 +05:30
Azhwani 6c4848958f BAEL-6783: Converting HashMap to an ArrayList in Java (#14814) 2023-09-23 19:43:53 -07:00
Eugene Kovko 8171a4604f BAEL-6985: Patterns With Locales (#14808) 2023-09-23 19:22:37 -07:00
mcasari c56bc04f95 BAEL-6846 - change assertNotEquals to assertEquals 2023-09-23 17:02:20 +02:00
mcasari 91c0a3ceb2 Merge remote-tracking branch 'upstream/master' 2023-09-23 16:46:14 +02:00
Kai Yuan 8ea2cc9703 [duration-improvement] isNegative, isZero Tests (#14791) 2023-09-22 19:59:43 -05:00
Neetika KHANDELWAL fc07da9eda Modified code for Test 2023-09-22 23:06:36 +05:30
Neetika23 601d051f32 Student.java 2023-09-22 22:30:54 +05:30
collaboratewithakash 1937f1a965 backlink updated 2023-09-22 15:28:00 +05:30
Loredana Crusoveanu 6141bd4f56 Merge pull request #14803 from edizor/master
Update README
2023-09-22 10:38:51 +03:00
Niket Agrawal 2b7c4f684d Removal of Surefire and Upgrading to JDK17 2023-09-22 11:29:41 +05:30
Niket Agrawal efab8b66cf Removing Maven Plugin 2023-09-22 11:21:24 +05:30
mcasari f36035a22a Merge remote-tracking branch 'upstream/master' 2023-09-21 20:28:41 +02:00
mcasari a7940d9658 BAEL-6846 - Convert from float to BigDecimal 2023-09-21 20:28:15 +02:00
Eugene Kovko f2b6460056 BAEL-6978: Adding the information about the bug (#14804) 2023-09-21 10:26:51 -07:00
Bhaskar Ghosh Dastidar 7af1c7917f BAEL-6823-middle-element-array (#14774)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-21 09:23:10 -07:00
davidmartinezbarua 3f62e256da Merge pull request #14775 from parthiv39731/PR-6726
BAEL-6726, Merge Two Arrays and Remove Duplicates in Java
2023-09-21 11:51:52 -03:00
edizor d83ba0aef8 Update README.md
[skip ci]
2023-09-21 20:55:24 +08:00
edizor 654c04d0f2 Update README.md
[skip ci]
2023-09-21 20:48:07 +08:00
edizor d185bbe190 Update README.md
[skip ci]
2023-09-21 20:40:36 +08:00
edizor 383ad4b354 Update README.md
[skip ci]
2023-09-21 20:31:13 +08:00
edizor 62d47b8acc Update README.md
[skip ci]
2023-09-21 20:07:58 +08:00
edizor 2a34149e8a Update README.md
[skip ci]
2023-09-21 19:56:38 +08:00
Kasra Madadipouya 914d01d03d JAVA-25341 fix Java networking flaky tests (#14798) 2023-09-21 09:28:33 +05:30
Niket Agrawal 910be42d8f Review Comment changes 2023-09-20 22:05:22 +05:30
Liam Williams 156793bb48 Merge pull request #14796 from rajat-garg/rg/extension-from-mime-type
[BAEL-6730] Use ContentType to fetch the extensions
2023-09-19 22:17:46 +01:00
rajatgarg 030f308c5b Use ContentType to fetch the extensions 2023-09-20 00:36:33 +05:30
Niket Agrawal 0f425a4573 Updated comments 2023-09-19 23:45:25 +05:30
Niket Agrawal 50515d3070 Additional Approach Changes 2023-09-19 23:39:38 +05:30
Niket Agrawal da0beaeee0 Restructuring to new module
Restructuring to new module
2023-09-19 21:25:59 +05:30
Hangga Aji Sayekti 556002e8d1 EOF Detection | bazeniancode@gmail.com | Hangga Aji Sayekti (#14738)
* [Add] add from my experiment repo github.com/hangga/eof-detection

* [Update] reorder test

* [Update] add close()

* [Update] try with resource

* [update] be careful with typo
2023-09-19 18:23:41 +05:30
Eugene Kovko 1e7471a2b3 BAEL-6822: Difference between Arrays.sort() and Collections.sort() (#14787) 2023-09-18 10:36:58 -07:00
Bhaskar Ghosh Dastidar d6db7fd6e7 [BAEL-6960] value based class (#14785)
* [BAEL-6960] value based class

* [BAEL-6960] value based class

* [BAEL-6960] value based class

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-18 10:26:37 -07:00
davidmartinezbarua 9d0985112b Merge pull request #14759 from sam-gardner/BAEL-6811-check-if-letter-is-emoji
BAEL-6811 Check if letter is emoji example code
2023-09-18 12:35:24 -03:00
Sam Gardner 39f5f3cdd7 BAEL-6811 extract dependecy version number 2023-09-18 10:41:36 +01:00
Loredana Crusoveanu 2c7bba9332 Merge pull request #14778 from edizor/master
Update README
2023-09-17 14:36:32 +03:00
Michael Olayemi 2a574249c1 Add Minutes to a String Time in Java (#14767) 2023-09-17 08:44:00 +05:30
parthiv39731 2d4d7308ad BAEL-6726, modified method names 2023-09-15 21:26:37 -07:00
edizor 64b8889bab Update README.md
[skip ci]
2023-09-16 09:26:17 +08:00
edizor 3e91cea3b7 Update README.md
[skip ci]
2023-09-16 09:23:27 +08:00
edizor 57448bdc88 Update README.md
[skip ci]
2023-09-16 09:19:02 +08:00
edizor 1e1dc78e41 Update README.md
[skip ci]
2023-09-16 09:10:33 +08:00
edizor 9fb2ef8bc0 Update README.md
[skip ci]
2023-09-16 09:00:17 +08:00
parthiv39731 7b188517e3 BAEL-6726, Merge Two Arrays and Remove Duplicates in Java 2023-09-15 09:20:34 -07:00
Niket Agrawal 5159e8ab67 Program Updates 2023-09-15 19:48:05 +05:30
Niket Agrawal b7b167ea1e Updated output 2023-09-15 18:39:05 +05:30
Kasra Madadipouya f820b37b6f Merge pull request #14739 from Bipinkumar27/JAVA-24545
JAVA-24545: Changes made for fixing issues in core-java-perf-2
2023-09-15 13:41:31 +02:00
Amol Gote 78b183b581 BAEL-6791 - Added in existing module Unit tests and Bench mark tests. (#14744)
* BAEL-6791 - Added in existing module Unit tests and Bench mark tests.

* BAEL-6791 - Put all of your code in a single package that refers to your article

* BAEL-6791 -
PR - add a newline after the package statements
PR - use 2-space indents for line continuations.
Use given-when-then naming convention for test methods
2023-09-14 21:00:04 -05:00
Bhaskar Ghosh Dastidar c1b2a9d4f7 BAEL-6838-index-of-set-element (#14771)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-14 16:17:36 -07:00
Niket Agrawal 6929fe1469 BAEL-6963
BAEL-6963 Changes
2023-09-15 00:04:31 +05:30
Sam Gardner f0719f76a7 BAEL-6811 remove unused import 2023-09-14 16:09:18 +01:00
Sam Gardner 913f8f5500 BAEL-6811 remove emoji4j usage 2023-09-14 16:03:19 +01:00
Sam Gardner 39f235d8ba Revert "BAEL-6811 Move folders"
This reverts commit 1fe064e743.
2023-09-14 15:56:39 +01:00
Sam Gardner 1fe064e743 BAEL-6811 Move folders 2023-09-14 15:06:43 +01:00
Loredana Crusoveanu a6ec9122ea BAEL-6811 move string article to make space for a new one using the same library; delete extra file 2023-09-14 10:01:58 +03:00
davidmartinezbarua 8bdab701bf Merge pull request #14727 from parthiv39731/PR-6669
BAEL-6669, Passing Class Name as Parameter in Java
2023-09-13 15:03:07 -03:00
Sam Gardner 601275a5c9 BAEL-6811 Check if letter is emoji example code 2023-09-13 15:39:17 +01:00
Bipinkumar27 76a427219e JAVA-24545: Incorporating review comments 2023-09-13 19:50:36 +05:30
panos-kakos d167545325 [JAVA-20157] Upgraded core-java-serialization module to JDK17 (#14646)
* [JAVA-20157] Upgraded core-java-serialization module to JDK17

* [JAVA-20157] Upgraded core-java-nio-2 module to JDK17
2023-09-13 12:39:35 +03:00
Bipin kumar 76f7964c96 JAVA-24677: Changes made for add sub-modules in parents (#14690) 2023-09-13 12:28:47 +03:00
Michael Olayemi cc911cefeb Differences between Heap Dump, thread dump and core dump (#14718)
* Differences between Heap Dump, thread dump and core dump

* Differences between Heap Dump, thread dump and core dump

* Differences between Heap Dump, thread dump and core dump

* Differences Between Heap Dump, Thread Dump and Core Dump
2023-09-13 06:48:47 +05:30
Kai Yuan 7c02a6ffdb [integer-to-digits] How to Split an Integer Number Into Digits in Java (#14736) 2023-09-12 16:46:08 -05:00
vunamtien 9bec8ebcdb BAEL-6816-create-stream-regex-matches (#14731)
* BAEL-6816-create-stream-regex-matches

* add unit test

---------

Co-authored-by: tienvn <tienvn@>
2023-09-12 21:58:56 +02:00
Bhaskar Ghosh Dastidar 42188fdc2d BAEL-6838-index-of-set-element (#14747)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-11 17:37:38 -07:00
mmomjya 3d522eb8c4 BAEL-6142 Map clear methods in Java (#14255)
Co-authored-by: Mariam Momjyan <mmomjyan@vmware.com>
2023-09-11 07:40:30 -07:00
Hamid Reza Sharifi d2a1340d5c Bael 6188: Extract CN from X509Certificate in Java (#14681)
* #BAEL-6188:add unit tests

* #BAEL-6188:add dependencies

* #BAEL-6188:add certificate

* #BAEL-6188:add extract CN using Regex

* #BAEL-6188:refactor CN using Regex

* #BAEL-6188:refactor test case name

* #BAEL-6188:add properties for dependency version
2023-09-10 14:11:22 -05:00
Alexandru Borza 53f3cf70a1 BAEL-6727 Streams vs. Loops in Java (#14741) 2023-09-10 08:49:43 -07:00
Harry9656 4609814e3c BAEL-6896: Add test for public static final field lookup. (#14668) 2023-09-09 21:28:24 +02:00
Loredana Crusoveanu e6a231d824 Merge pull request #14734 from edizor/master
Update README
2023-09-09 18:33:53 +03:00
Liam Williams ba5065c692 Merge pull request #14740 from rajat-garg/rg/extension-from-mime-type
[BAEL-6730] Move hardcoded version to properties
2023-09-09 15:47:46 +01:00
rajatgarg 30b5e9d7cb Move hardcoded version to properties 2023-09-09 15:25:14 +05:30
Bipinkumar27 1189911fc0 JAVA-24545: Changes made for fixing issues in core-java-perf-2 2023-09-09 15:22:02 +05:30
edizor bcacb5a37a Update README.md
[skip ci]
2023-09-08 22:48:56 +08:00
edizor 218938048a Update README.md
[skip ci]
2023-09-08 22:42:31 +08:00
edizor 03610a604c Update README.md
[skip ci]
2023-09-08 22:32:48 +08:00
edizor d68d446414 Update README.md
[skip ci]
2023-09-08 22:25:42 +08:00
edizor 7ed3a423cf Update README.md
[skip ci]
2023-09-08 22:22:17 +08:00
edizor 6ce1d12ff1 Update README.md
[skip ci]
2023-09-08 22:15:04 +08:00
edizor 1b5d9edacb Update README.md
[skip ci]
2023-09-08 22:10:24 +08:00
edizor 2a4f7f0e86 Update README.md
[skip ci]
2023-09-08 21:55:48 +08:00
edizor 90216306d7 Update README.md
[skip ci]
2023-09-08 21:49:40 +08:00
Gaetano Piazzolla cf1a561443 JAVA-24659 Simplifying Logic of Consumer-Producer problem. (#14682)
* JAVA-24659 | moving runflag inside consumer and producer. it makes no sense to have it inside

* JAVA-24659 | using atomic integer for sequence, and moving thread.sleep() in the same place

* JAVA-24659 | enhanced logic for simplicity
2023-09-08 19:14:38 +05:30
Bipin kumar b4d796004d JAVA-24414: Changes made for fixing failing test cases in core-java-st… (#14647) 2023-09-08 11:58:51 +03:00
Liam Williams 62e3033f5c Merge pull request #14701 from rajat-garg/rg/extension-from-mime-type
[BAEL-6730] Add getting Extension from MIME type of a file
2023-09-07 18:34:53 +01:00
rajatgarg 2b5199a2c6 Address review comments 2023-09-07 22:48:08 +05:30
Bipin kumar 9748166751 JAVA-23291: adding missed modules in pom.xml (#14614) 2023-09-07 18:47:37 +03:00
Vini c488be7122 Merge pull request #14685 from ovidiumihaitacu/master
[BAEL-6810] - Sequenced Collections in Java 21
2023-09-07 17:07:37 +02:00
Michael Olayemi 75bd390e27 update clamp function 2023-09-07 05:09:07 +00:00
Kai Yuan 7a0c69e969 [stream-map-object] Create List of Object From Another Type Using Java 8 (#14716) 2023-09-06 22:33:56 -05:00
rajatgarg 982a592fc6 Address review comments 2023-09-06 23:27:10 +05:30
parthiv39731 b066bce2b6 BAEL-6669, Passing Class Name as Parameter in Java 2023-09-06 03:02:37 -07:00
rajatgarg d7f6dfff1c Address review comments 2023-09-06 02:18:51 +05:30
rajatgarg d7367094f3 Address review comments 2023-09-06 02:17:39 +05:30
rajatgarg 869b931e73 Update Tests to get multiple extensions 2023-09-06 02:12:57 +05:30
lajka a0ca4e6438 BAEL-6871: Remove junit-jupiter-api dependency. 2023-09-05 19:44:37 +02:00
lajka 5116a17b36 BAEL-6871: Add code and tests demonstrating how to compare objects using apache commons lang 3. 2023-09-05 19:42:03 +02:00
davidmartinezbarua 41facdad5f Merge pull request #14670 from manfred106/BAEL-6894-close-iostream
BAEL-6894: Closing Java IO Streams
2023-09-05 14:15:27 -03:00
Kasra Madadipouya b176a7feff Merge pull request #14708 from GaetanoPiazzolla/JAVA-24699-delete-classes
JAVA-24699 | removing useless classes
2023-09-04 16:13:03 +02:00
Mo Helmy c4c613b5a8 This commit related to the article BAEL-6877 (#14676)
This commit aims to add a new test class to convert a HashMap string into a HashMap object using toString().
2023-09-04 12:12:03 +02:00
Loredana Crusoveanu dcf2685179 Merge pull request #14691 from edizor/master
Update README
2023-09-04 09:41:35 +03:00
Kai Yuan 1811ec4bc1 [meaning-of-->] the meaning of --> (#14678) 2023-09-03 21:50:16 -05:00
gaepi 7d712320ed JAVA-24699 | removing useless classes 2023-09-03 15:12:14 +02:00
Partha Sutradhar 228598db3c [BAEL-6481] - Stop Executing Further Code in Java (#14076)
* Creating a Deep vs Shallow Copy of an Object in Java

* [BAEL-6481]-Stop Executing Further Code in Java

* [BAEL-6481] - Stop Executing Further Code in Java

* [BAEL-6481] - Stop Executing Further Code in Java

* [BAEL-6481] - Stop Executing Further Code in Java.

* [BAEL-6481] - Stop Executing Further Code in Java.

* [BAEL-6481] - Stop Executing Further Code in Java.

* [BAEL-6481] Stop Executing Further Code in Java.

* [BAEL-6481] Stop Executing Further Code in Java. Moved to core java numbers - 6

* [BAEL-6481] Stop Executing Further Code in Java.

* [BAEL-6481] Stop Executing Further Code in Java.

* [BAEL-6481] Stop Executing Further Code in Java.

* [BAEL-6481] Stop Executing Further Code in Java. [Commented the Test cases]

* [BAEL-6481] Stop Executing Further Code in Java. [Commented the Two Test]

* [BAEL-6481] Stop Executing Further Code in Java. [Fixed Method Name's]
2023-09-03 10:13:01 +05:30
Bhaskar Ghosh Dastidar e337b6dff3 [BAEL-6823] middle of array (#14696)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-09-02 20:21:33 -07:00
rajatgarg f1c7b8b2b0 Add getting Extension from MIME type of a file 2023-09-03 03:59:20 +05:30
ACHRAF TAITAI 8c54cce5d1 BAEL-6847: Replacing Single Quotes in Java String (#14665) 2023-09-02 16:35:17 +02:00
davidmartinezbarua b7c65ace34 Merge pull request #14464 from abdul0214/convert-between-localdate-and-epoch
BAEL-5928: Adds conversion b/w Epoch & LocalDateTime
2023-09-01 19:32:54 -03:00
Pedro Lopes 94b8db6042 BAEL-6699: Java Interface Naming Conventions (#14551)
* interfaces and implementations

* code review changes
2023-09-01 21:01:51 +02:00
edizor 9de72d9295 Update README.md
[skip ci]
2023-09-01 19:50:43 +08:00
edizor b472014d5f Update README.md
[skip ci]
2023-09-01 19:45:05 +08:00
edizor 456312f67d Update README.md
[skip ci]
2023-09-01 19:39:52 +08:00
edizor afb3d1c7cb Update README.md
[skip ci]
2023-09-01 19:29:30 +08:00
edizor 1cdfb0fece Update README.md
[skip ci]
2023-09-01 19:22:51 +08:00
edizor 04078e06a0 Update README.md
[skip ci]
2023-09-01 19:08:11 +08:00
Michael Olayemi 036409850b Clamp Function in Java (#14650)
* Clamp Function in Java

* Clamp Function in Java

* Clamp Function in Java

* Clamp Function in Java
2023-09-01 08:42:51 +05:30
ovidiu-mihai98 21176bb975 [BAEL-6810] - Sequenced Collections in Java 21 2023-08-30 19:58:17 +03:00
Liam Williams 89b7fa640d Merge pull request #14653 from parthiv39731/PR-6865
BAEL 6865
2023-08-30 10:05:23 +01:00
parthiv39731 9e0223b28f BAEL-6865, implemented review comments 2023-08-29 20:16:37 -07:00
Bogdan Cardoş 86f7514df6 BAEL-6819 convert from int to Long in Java (#14671)
* BAEL-6819 convert from int to Long in Java

* BAEL-6819 update package name
2023-08-29 14:56:00 -07:00
parthiv39731 bd869f214e BAEL-6865, implemented review comments 2023-08-29 09:00:39 -07:00
parthiv39731 2f309cff86 BAEL-6865, implemented review comments 2023-08-29 08:34:38 -07:00
Ana Peterlić 259de2ed39 BAEL-6700 - Check if Certificate is Self-Signed or CA Signed with Java (#14628)
* BAEL-6700 - Check if Certificate is Self-Signed or CA Signed with Java

* Added new module to parent pom

* Update test method names
2023-08-29 12:02:19 +05:30
parthiv39731 e521083c14 Merge branch 'eugenp:master' into PR-6865 2023-08-28 23:14:13 +05:30
parthiv39731 2b88d3e646 BAEL-6865, implemented review comments 2023-08-28 10:40:06 -07:00
Gaetano Piazzolla 5b8de98ac3 JAVA-23377 | fixing sync code block (#14574) 2023-08-28 23:08:00 +05:30
timis1 c34697f899 JAVA-24051 Upgrade java-base64-encode-and-decode (#14654) 2023-08-28 20:25:53 +03:00
Manfred 53f0aa07eb BAEL-6894: Closing Java IO Streams 2023-08-28 17:51:20 +01:00
Bipin kumar b858b5521f JAVA-24381:Changes made for fixing pom indentation (#14633) 2023-08-28 18:28:01 +03:00
panos-kakos cff743d86d [JAVA-23099] Upgraded maven-jar-plugin to latest version 2023-08-28 09:11:25 +03:00
panos-kakos 1ac88d18e3 [JAVA-23099] Upgraded maven-compiler-plugin to latest version 2023-08-28 08:48:54 +03:00
lucaCambi77 26dd69ec50 feat: format multpile or in an if (#14664) 2023-08-26 13:34:16 -07:00
Loredana Crusoveanu 117d167ed2 Merge pull request #14662 from collaboratewithakash/master
backlink updated
2023-08-26 20:52:36 +03:00
Kai Yuan ef5a4d2daa [indexes-of-matches] Get the Indexes of Regex Pattern Matches in Java (#14648) 2023-08-26 09:23:29 -05:00
abdul0214 2743bcc498 BAEL-5928: Adds conversion b/w Epoch & LocalDateTime 2023-08-26 12:44:57 +02:00
collaboratewithakash e325ae6e27 backlink added 2023-08-26 12:51:02 +05:30
Michael Olayemi d7c57a2e2b Modulus of Negative Numbers in Java (#14640) 2023-08-26 08:58:13 +05:30
parthiv39731 a60be2d0b7 Merge remote-tracking branch 'origin/PR-6865' into PR-6865 2023-08-25 10:36:22 -07:00
parthiv39731 5bf002e0fd BAEL-6865, taking care of review comments as part of PR-14653 2023-08-25 10:35:47 -07:00
parthiv39731 63f511b9c6 Update core-java-modules/core-java-streams-5/src/test/java/com/baeldung/aggregateEx/AggregateExceptionHandlerUnitTest.java
removing extra parentheses

Co-authored-by: Liam Williams <liam.williams@zoho.com>
2023-08-25 09:50:53 -07:00
Loredana Crusoveanu 89fa14a69b Merge pull request #14651 from edizor/master
Update README
2023-08-25 10:18:29 +03:00
Kai Yuan c37ed2843a [regex-squre-brackets] Extract Text Between Square Brackets (#14635) 2023-08-24 21:38:07 -05:00
parthiv39731 5c67e16385 Merge branch 'eugenp:master' into PR-6865 2023-08-25 00:35:54 +05:30
parthiv39731 9b1d47ff4e BAEL-6865, Aggregate Runtime Exceptions in Java Streams
Changed method names
2023-08-24 12:04:54 -07:00
edizor d5302c21b5 Update README.md
[skip ci]
2023-08-24 21:49:35 +08:00
edizor 7f3b001888 Update README.md
[skip ci]
2023-08-24 21:41:43 +08:00
edizor f9762f26c7 Update README.md
[skip ci]
2023-08-24 21:39:18 +08:00
edizor d5b7790812 Update README.md
[skip ci]
2023-08-24 21:36:47 +08:00
edizor 1dad5a38e4 Update README.md
[skip ci]
2023-08-24 21:33:45 +08:00
Vini a77075cc32 Merge pull request #14555 from rajat-garg/feature/cartesian-product
[BAEL-6708] Add Cartesian Product
2023-08-24 08:57:40 +02:00
rajatgarg 8351c9fca3 [BAEL-6708] Address review comments 2023-08-24 08:58:53 +05:30
Gaetano Piazzolla 1f98b51b8f JAVA-24259 | small refactor for readability (#14602) 2023-08-23 21:07:47 +05:30
timis1 fad32db315 JAVA-24052 Upgrade java-stream-filter-lambda article (#14610) 2023-08-23 15:08:28 +03:00
timis1 65852417da JAVA-24055 Upgrade reading-file-in-java article (#14591) 2023-08-23 15:07:11 +03:00
panos-kakos 116d093db9 [JAVA-23095] (#14613)
* [JAVA-23095] Upgraded guava library to latest version

* [JAVA-23095] Clean up
2023-08-23 15:40:27 +05:30
ACHRAF TAITAI 420305fe3b BAEL-6560: How to solve SocketException Connection reset (#14636) 2023-08-22 10:10:05 +02:00
Bhaskar Ghosh Dastidar de6d040193 [BAEL-6859] inner sub classes (#14631)
* [BAEL-6859] inner and sub classes

* [BAEL-6859] unit test cases added

* [BAEL-6859] usage of inner class in outer class

* [BAEL-6859] usage of inner class in outer class

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-08-21 17:20:48 +02:00
Kasra Madadipouya 023d73ef61 Merge pull request #14624 from timis1/JAVA-24160
JAVA-24160 Review log statements for projects - Week 33 - 2023
2023-08-20 23:33:04 +02:00
Loredana Crusoveanu 0a10e4d8e0 Merge pull request #14616 from edizor/master
Update README
2023-08-20 20:17:59 +03:00
vunamtien 111379185d BAEL-6839-get-random-from-set (#14606)
* BAEL-6839-get-random-from-set

* edge cases
2023-08-20 08:34:15 +02:00
timis1 814604f2f4 JAVA-24160 Review log statements for projects - Week 33 - 2023 2023-08-20 09:31:39 +03:00
Shahul Basha 94ab13cacc Override Equals method improvement (#14446) 2023-08-20 08:25:42 +02:00
gaepi d5ebd8105d JAVA-23897 | re enabling test 2023-08-19 13:04:17 +02:00
Kai Yuan 98d959f33a Get the first n elements of a List into an Array (#14599)
* Get the first n elements of a List into an Array

* [first-n-to-array] rename N -> n
2023-08-18 20:30:24 -05:00
edizor 05b3ebd54e Update README.md
[skip ci]
2023-08-19 08:54:26 +08:00
edizor cbd608ed1f Update README.md
[skip ci]
2023-08-19 08:48:05 +08:00
edizor 8bd823054e Create README.md
[skip ci]
2023-08-19 08:24:42 +08:00
edizor c674fe4931 Update README.md
[skip ci]
2023-08-19 08:14:31 +08:00
edizor fc9afd1fa0 Update README.md
[skip ci]
2023-08-19 08:07:12 +08:00
edizor abfef847bd Update README.md
[skip ci]
2023-08-19 07:56:21 +08:00
edizor f8b5cccb6c Update README.md
[skip ci]
2023-08-19 07:43:12 +08:00
edizor 415eb1fae3 Update README.md
[skip ci]
2023-08-19 07:32:45 +08:00
Kai Yuan 16080930fa [map-KV-to-list] Get Values and Keys as ArralyLists From a HashMap (#14615) 2023-08-18 21:48:48 +02:00
Rufina Uche 8502670140 Calculating the Sum of Two Arrays Element by Element in Java (#14579)
* Create SumArraysUsingForLoop.java

* Update SumArraysUsingForLoop.java

* add sum arrays using for each loop and streams

* Create SumArraysUsingForLoopTest.java

* Add files via upload

* Update SumArraysUsingStreams.java

* Update and rename SumArraysUsingForEachTest.java to SumArraysUsingForEachUnitTest.java

* Rename SumArraysUsingForLoopTest.java to SumArraysUsingForLoopUnitTest.java

* Update and rename SumArraysUsingStreamsTest.java to SumArraysUsingStreamsUnitTest.java

* Update SumArraysUsingForEachUnitTest.java

* Update SumArraysUsingForLoopUnitTest.java

* Update SumArraysUsingForEachUnitTest.java

* Update SumArraysUsingStreamsUnitTest.java
2023-08-18 21:43:41 +02:00
Bhaskar Ghosh Dastidar b25e324790 [BAEL-6859] Inner Classes vs. Subclasses in Java (#14608)
* [BAEL-6859] inner and sub classes

* [BAEL-6859] unit test cases added

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-08-18 21:36:51 +02:00
timis1 04caad5f80 JAVA-24057 Upgrade java-aes-encryption-decription article (#14593) 2023-08-18 12:14:17 +03:00
Kai Yuan 1d0afe4f07 Convert an ArrayList of String to a String Array in Java (#14583)
* Convert an ArrayList of String to a String Array in Java

* fixing typo

* module moving
2023-08-15 19:40:47 -05:00
Graham Cox 379992c84e BAEL-6813: Moved Magic Square code to core-java-lang-math-3 (#14587)
* BAEL-6813: Moved Magic Square code to core-java-lang-math-3

* Fix code to work below Java 11

* Fix unrelated broken test
2023-08-15 12:56:05 +02:00
Loredana Crusoveanu 4a11a82b66 Merge pull request #14596 from eugenp/upgrade-module
upgrade core-java-collections-conversions-2 module to jdk 11
2023-08-15 13:19:37 +03:00
timis1 1f5590b7b5 JAVA-24054 Upgrade java-enum-values article (#14590) 2023-08-15 11:40:13 +03:00
Loredana Crusoveanu ef865442ea upgrade core-java-collections-conversions-2 module to jdk 11 2023-08-15 10:40:32 +03:00
Michael Olayemi cb111b0d8b Conversion From 12 Hours Time to 24 Hours Time in Java (#14580) 2023-08-14 22:33:59 +05:30
MohamedHelmyKassab 5874d1fd15 This PR is for BAEL-6788 (#14563)
This PR aims to add java classes for the HashMap multi values operations with same key
2023-08-12 09:00:00 +02:00
Kasra Madadipouya bb8bb76538 Merge pull request #14571 from GaetanoPiazzolla/JAVA-24048-fix-test
JAVA-24048 | Changed to Manual test
2023-08-11 15:35:08 +02:00
Loredana Crusoveanu c274c658ad Merge pull request #14573 from collaboratewithakash/master
backlink updated
2023-08-11 15:27:55 +03:00
Graham Cox 005d84d780 BAEL-6813: Creating a Magic Square in Java (#14572) 2023-08-11 12:57:48 +02:00
GaetanoPiazzolla 8e1bd93d12 JAVA-24048 | Changed to Manual test 2023-08-11 10:41:51 +02:00
collaboratewithakash 2bfc8a9a1e backlink updated 2023-08-11 12:38:40 +05:30
collaboratewithakash 75beecef09 backlink updated 2023-08-11 12:36:43 +05:30
Neetika Khandelwal 183e213f0e Shallow and Deep Copy example 2023-08-10 23:11:25 +05:30
Robaed b04d773ef2 [BAEL-6593] - Initial push after adding epoch time to localdate and localdatetime conversions (#14556)
Co-authored-by: bobby00 <edwarobert6@gmail.com>
2023-08-10 09:05:12 +02:00
Kasra Madadipouya aa2686bc4a Merge pull request #14550 from ehsansasanian/java-20349-move-pre-jpms-module
java-20349: move pre-jpms module to core-java-9 module
2023-08-09 23:59:51 +02:00
rajatgarg de16d8c39c [BAEL-6708] Address review comments 2023-08-09 22:44:14 +05:30
Loredana Crusoveanu f439ab873d Merge pull request #14558 from edizor/master
Update README
2023-08-09 18:07:13 +03:00
Vladyslav Chernov 7ab8374bd9 BAEL-5852: What does the Holder<T> do in Java? (#14477)
Co-authored-by: Vladyslav Chernov <vlad.chrv@gmail.com>
2023-08-09 20:12:00 +05:30
edizor f68319aef0 Update README.md
[skip ci]
2023-08-09 20:50:47 +08:00
edizor 0276583d48 Update README.md
[skip ci]
2023-08-09 20:45:45 +08:00
edizor e0a5015914 Update README.md
[skip ci]
2023-08-09 20:25:58 +08:00
edizor db956411f3 Update README.md
[skip ci]
2023-08-09 20:22:23 +08:00
edizor 97416e6ea8 Update README.md
[skip ci]
2023-08-09 20:17:48 +08:00
edizor 03c206ac2d Update README.md
[skip ci]
2023-08-09 20:14:42 +08:00
Kai Yuan 4945be2fd6 What's the Difference Between Iterator and Listiterator? (#14547) 2023-08-08 19:05:39 -05:00
rajatgarg 2337e29d0b [BAEL-6708] Add Cartesian Product 2023-08-08 20:07:33 +05:30
davidmartinezbarua 2e44c635e9 Merge pull request #14520 from sam-gardner/BAEL-6837-get-first-item-from-set
BAEL-6837 Add example code for getting the first item from a Set
2023-08-08 10:58:59 -03:00
Ehsan Sasanianno 743d8e8ad4 java-20349: move pre-jpms module to core-java-9 module 2023-08-07 22:50:40 +02:00
Kasra Madadipouya 0061f631a8 Merge pull request #14534 from Bipinkumar27/JAVA-22625
JAVA-22625:Changes made for testing the failing module
2023-08-07 20:04:03 +02:00
Alex Tighe 6a6ac00db2 BAEL-6458: Guide to the yield Keyword in Java (#14440)
* BAEL-6229: committing new example for loading multiple yaml configuration files

* BAEL-6229: updating README.md

* BAEL-6229: adding example one code, commented out

* Revert "BAEL-6229: updating README.md"

This reverts commit 51cd2dcf97f797aa6a723888fd246ef0142242a3.

* BAEL-6229: adding comments around commented out code for first example.

* BAEL-6458: creating new module for conditionals and adding examples for yield

* BAEL-6458: creating new module for conditionals and adding examples for yield

* BAEL-6458: rename methods

* BAEL-6458: clean up pom

* BAEL-6458: convert checks to tests

* BAEL-6458: convert checks to tests

* BAEL-6458: convert checks to tests

* BAEL-6458: move examples to just YieldTest and removed YieldExamples class. Also added assigning the value of the switch expression to a variable instead of returning from method. Also added a non-default exhaustive test.

* BAEL-6458: Test clean up based on initial PR feedback.
2023-08-07 18:38:05 +01:00
Kai Yuan 966d488013 Remove Duplicate Values From HashMap in Java (#14519)
* Remove Duplicate Values From HashMap in Java

* fix the typo in the package name
2023-08-06 12:49:57 -05:00
Gaetano Piazzolla f90e26db1f JAVA-23319 | Moving DualPrintStream (#14524)
* JAVA-23319 | moving DualPrintStream

* JAVA-23319 | adding checkerror
2023-08-06 10:40:03 +05:30
Tapan Avasthi 8aecf2fd3f BAEL-6831: Convert an int[] Array to HashSet in Java (#14525)
Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2023-08-05 08:44:19 -05:00
Eugene Kovko 760825405a BAEL-6651: Embeddable Records in Hibernate 6 (#14516)
* BAEL-6651: Bumped Spring Boot version

* BAEL-6651: Replaced flaky test

* BAEL-6651: Embeddable example with tests
2023-08-04 19:39:09 +02:00
Bipinkumar27 2ed0b60446 JAVA-22625:Changes made for testing the failing module 2023-08-04 20:06:01 +05:30
Vini 2879e21aeb Merge pull request #14526 from vunamtien/BAEL-6541-convert-relative-path-2
BAEL-6541-convert-relative-path-2
2023-08-04 10:53:52 +02:00
Loredana Crusoveanu 41d11e7d46 Update CertificatesUnitTest.java 2023-08-04 10:42:58 +03:00