Commit Graph

2551 Commits

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