Commit Graph

4391 Commits

Author SHA1 Message Date
hajk1 a1e28048a6 reformat the files using intellij-baeldung-style.xml 2024-04-10 12:37:21 +03:30
hajk1 4bdfd9699f adding new article BAEL-7497 source codes 2024-04-10 12:37:07 +03:30
Yadukrishnan 2b430714bb Added condition for divide by zero check 2024-04-10 08:11:11 +02:00
vunamtien eea7bccf86
[JAVA-31831] Split-or-move-core-java-8-datetime-2 (#16325) 2024-04-10 00:16:14 +03:00
Yadukrishnan 423e60577d Used records intead of plain class 2024-04-09 22:04:14 +02:00
anujgaud 306d2da98c
Update SetMatrixToZero.java 2024-04-09 23:18:22 +05:30
Loredana Crusoveanu 9e3c6129f9
Merge pull request #16344 from eugenp/lor6-patch-1-1
Update README.md
2024-04-09 19:29:35 +03:00
Loredana Crusoveanu 9dc160ccca
Update README.md 2024-04-09 19:24:00 +03:00
Loredana Crusoveanu 27e451cd97
Update README.md 2024-04-09 19:23:47 +03:00
Yadukrishnan 9ddceb29f1 Added subtract and divide operations 2024-04-09 09:00:01 +02:00
Liam Williams e6c33f07c4
Merge pull request #16310 from sk1418/improvement-init-Long-list
[improvement-init-Long-list] add long list init
2024-04-08 23:56:18 +01:00
sam-gardner cc406d8899
[JAVA-32662] Move articles from Java Math 3 to Java Math 4 (#16326) 2024-04-08 20:36:19 +02:00
sam-gardner 4fd081e1b4
[JAVA-32669] Move article out of core-java-collections-5 (#16327) 2024-04-08 20:27:56 +02:00
Diegom203 90cf4fe1dd
baeldung-articles : BAEL-7500 (#16329)
* Update pom.xml

Add collections-6

* baeldung-articles : BAEL-7500

Move the article to /core-java-collections-6
2024-04-08 10:39:16 -07:00
MohamedHelmyKassab 26f3664371
This commit is related to BAEL-6298 (#16323)
This commit aims to add three classes (Example, GenericExample, ReflectionExample).
2024-04-08 09:39:32 -07:00
Mo Helmy 1b0b87bfd2
This commit is related to BAEL-7722 (#16316)
This commit aims to add a test class "SymmetricSubstringMaxLengthUnitTest.java" to find length of longest symmetric substring.
2024-04-08 09:30:28 -07:00
Andrei Branza 3999bcb3bd BAEL-6421 | Removed public keyword from methods 2024-04-08 19:09:19 +03:00
Kai.Yuan d8b5d22fa3 [improvement-init-Long-list] rename package 2024-04-08 11:36:50 +02:00
Yadukrishnan cdf1bcdc0e Added the test case for complex number addition 2024-04-07 21:53:33 +02:00
Yadukrishnan 999ff99f97 Moved ComplexNumber to main source 2024-04-07 21:50:25 +02:00
Yadukrishnan bb499f340c simplified the parsing using regex 2024-04-07 21:40:20 +02:00
Yadukrishnan aabaaf5ec9 removed unused imports 2024-04-07 21:35:59 +02:00
Yadukrishnan 1ede00ad50 Fixed the issue with some formats 2024-04-07 21:35:11 +02:00
Yadukrishnan eed82faf31 adjusted test data 2024-04-07 21:07:38 +02:00
Yadukrishnan c944722402 Added sample code for complex number addition and multiplication 2024-04-07 21:06:27 +02:00
Kai.Yuan ce618671be [improvement-init-Long-list] update 2024-04-07 17:11:14 +02:00
Andrei Branza 293574e399 BAEL-6421 | Eliminated unnecessary plugin 2024-04-07 15:37:29 +03:00
Andrei Branza 6a04c9921c Merge branch 'master' into BAEL-6421-PrintWriter-write-vs-print 2024-04-07 13:51:18 +03:00
Mehvish Ashiq bea3105f57
[BAEL-7632] Convert a phone number in words to number with Java (#16248)
* [BAEL-7632] Convert a phone number in words to number with Java

* Updated [BAEL-7632] Convert a phone number in words to number with Java

* Updated [BAEL-7632] Convert a phone number in words to number with Java
2024-04-07 10:06:16 +01:00
Kai.Yuan 74da8faf7f [improvement-init-Long-list] add long list init 2024-04-05 23:56:05 +02:00
vunamtien 9ff1e00b0e
[JAVA-31658] Upgrade cactoos, jcabi-aspects, threetenbp, jodatime (#16293) 2024-04-05 10:49:54 +03:00
Loredana Crusoveanu 0f5e34ea63
Merge pull request #16294 from rcalago/master
Update on README.md
2024-04-04 10:26:54 +03:00
Harry9656 aa8016e838
[JAVA-32852] Fix UrlCheckerIntegrationTest (#16292) 2024-04-04 07:05:25 +02:00
rcalago 7d46346e9f
Update README.md 2024-04-04 00:13:17 +08:00
rcalago a97ddc25b7
Update README.md 2024-04-04 00:12:04 +08:00
rcalago 6c33d80eca
Update README.md 2024-04-04 00:10:54 +08:00
rcalago 278e6cebdc
Update README.md 2024-04-04 00:08:58 +08:00
rcalago f0e8cef1fc
Update README.md 2024-04-04 00:03:08 +08:00
rcalago 16d52de59d
Update README.md 2024-04-03 23:47:45 +08:00
Somnath Musib 39427baf50
Bael 7050 Java 21 New Features (#15870)
* BAEL-7050 Java 21 New Features

* BAEL-7050 Formatted the pom.xml file

* BAEL-7050 Moved the codebase to existing core-java-21 project

* Removed the old pom.xml reference

* Removed the old core-java-21-new-features project

* BAEL-7050 PR Review Changes

* BAEL-7050 Using JUnit5 in test cases

* BAEL-7050 Using JUnit5 in test cases

* BAEL-7050 Removed the public modifier from JUnit class and methods
2024-04-03 15:01:54 +02:00
anujgaud dbd9448e99
Update method names 2024-04-02 22:14:57 +05:30
anujgaud e73a578dbd
Update method names 2024-04-02 22:14:45 +05:30
Thibault Faure f5963a71f1 BAEL-7745 Fix unit test in core-java-jvm3 2024-04-01 17:30:32 +02:00
Azhwani c2684009bc
BAEL-7499: Check if an element is present in a Set in Java (#16065) 2024-04-01 15:54:08 +02:00
Vini 823bbbdae0
Merge pull request #16146 from danielmcnally285/danielmcnally285_last_n_characters
BAEL-7600: Get last n characters from a String
2024-03-31 11:30:59 +02:00
DiegoMarti2 18f4f8b53e
baeldung-articles BAEL-7642 (#16255) 2024-03-28 21:09:49 -07:00
Liam Williams ef9d4a02d2
Merge pull request #16209 from sk1418/map-to-value->Set-of-keys
[map-to-value->Set-of-keys] Map<K,V> -> Map<V,Set<K>>
2024-03-28 13:31:38 +00:00
MohamedHelmyKassab 40879b5237
This PR is related to BAEL-6429 (#16250)
* This commit is related to BAEL-6429

This commit aims to add a .html file named test.

* This commit is related to BAEL-6429

This commit aims to add a test class named "OpenHtmlFilesUnitTest".

* Update OpenHtmlFilesUnitTest.java

The java.awt.HeadlessException occures, indicating that the current environment lacks a graphical display necessary for the Desktop class to function properly.
So i commented the method.
2024-03-27 22:34:21 -07:00
Bhaskar Ghosh Dastidar 5d38f245cd
[BAEL-6954] internet address resolution spi (#16245)
* [BAEL-6954] internet address resolution spi

* [BAEL-6954] internet address resolution spi

* [BAEL-6954] internet address resolution spi

* [BAEL-6954] internet address resolution spi

* [BAEL-6954] internet address resolution spi

* [BAEL-6954] internet address resolution spi
2024-03-27 22:22:17 -07:00
DiegoMarti2 d1e36a0b4e
baeldung-articles : BAEL-6607 (#16240)
Get a Path to a Resource in a Java JAR File.
2024-03-27 21:43:38 -07:00
Andrei Branza e4aa7a1206 Merge branch 'master' into BAEL-6421-PrintWriter-write-vs-print 2024-03-27 20:58:57 +02:00
Muhammad Asif 9e21e95e6f
BAEL-7030 Added the example code (#16085)
* BAEL-7030 Added the example code

* Removed public modifier
2024-03-27 17:57:34 +01:00
rcalago cfcbac873c
Update README.md 2024-03-27 10:28:57 +08:00
rcalago dd622e250d
Update README.md 2024-03-27 10:26:12 +08:00
rcalago 8cb77a1a88
Update README.md 2024-03-27 10:23:41 +08:00
rcalago 5792231765
Update README.md 2024-03-27 10:20:22 +08:00
rcalago 8da755ff7a
Update README.md 2024-03-27 10:12:36 +08:00
rcalago dede5abc97
Update README.md 2024-03-27 10:10:31 +08:00
Liam Williams e1e94a088a
Merge pull request #16165 from sk1418/map-stream-to-map
[map-stream-to-map] merge a stream of maps to a single map
2024-03-26 13:28:48 +00:00
Liam Williams bef52d4ac3
Merge pull request #16175 from sk1418/add-to-immutable-list
Add to immutable list
2024-03-26 13:28:25 +00:00
Liam Williams e57037e841
Merge pull request #15766 from adalagandev/BAEL-7131_InputStream_vs_InputStreamReader_in_Java_v2
BAEL-7131 version 1 - POST REPO re-writing the commit history issue.
2024-03-26 13:27:14 +00:00
vunamtien 82120f03d7
[JAVA-26659] Upgrade jacoco-maven-plugin (#16223) 2024-03-25 23:43:41 +01:00
MohamedHelmyKassab 452cdc58c9
This commit is related to BAEL-6972 (#16217)
This commit aims to add two classes Child and Parent.
2024-03-25 15:18:39 -07:00
Mo Helmy 17cb4108d4
This PR is related to BAEL-7427 (#16028)
* This commit is related to BAEL-7427

This commit aims to add a Main class.

* This commit is related to BAEL-7427

This commit aims to add a myFile.gz file to the resources folder.

* This commit is related to BAEL-7427

This commit aims to add a test class "ReadingGZIPUsingGZIPInputStreamUnitTest".

* This commit is related to BAEL-7427

This commit aims to add a myFile.gz file to the resources folder.

* Update Main.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update Main.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update Main.java

* Update Main.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update Main.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update Main.java

* Update ReadingGZIPUsingGZIPInputStreamUnitTest.java

* Update Main.java
2024-03-24 20:08:17 +00:00
Andrei Branza 0d7b2dee7e Merge branch 'master' into BAEL-6421-PrintWriter-write-vs-print 2024-03-24 16:06:07 +02:00
Andrei Branza 2b1f0b280e BAEL-6421 | Cleaned the module pom from duplicate dependencies. 2024-03-24 16:03:10 +02:00
Andrei Branza 992716d7ff BAEL-6421 | Added necessary tests for the PrintWriter write vs print method article 2024-03-24 15:59:14 +02:00
Kai.Yuan 47e4316d01 [map-to-value->Set-of-keys] Map<K,V> -> Map<V,Set<K>> 2024-03-23 17:23:38 +01:00
DiegoMarti2 9cc307e108
baeldung-articles : BAEL-6752 (#16195)
* baeldung-articles : BAEL-6752

When to Use Setter Methods or Constructors for Setting a Variable's Value in Java.

* baeldung-articles : BAEL-6752

When to Use Setter Methods or Constructors for Setting a Variable's Value in Java.

* Updating ConstructorsVersusSetterMethodsUnitTest.java

Rename functions
2024-03-22 14:08:14 -07:00
MohamedHelmyKassab 663d1831da
This commit is related to BAEL-6404 (#16201)
This commit aims to add a test class "UTF8ToISOUnitTest.java" To convert UTF-8 to ISO-8859-1 in Java.
2024-03-22 11:15:31 -07:00
Harry9656 04b7d05a76
[JAVA-32305] Failing test for External UrlCheckerUnitTest in core-java-networking-2 (#16174) 2024-03-22 16:36:21 +01:00
Loredana Crusoveanu 525d43f5b1
Merge pull request #16189 from rcalago/master
Update on README.md
2024-03-22 08:28:14 +02:00
Dominique Plante 0248e55803
Merge pull request #16018 from Imranalam28/master
[BAEL-7527] Find Peak Elements of a List
2024-03-21 15:59:09 -07:00
rcalago 1b599ba18d
Update README.md 2024-03-21 23:51:24 +08:00
rcalago c49c851800
Update README.md 2024-03-21 23:50:05 +08:00
rcalago 37004adaa0
Update README.md 2024-03-21 23:46:26 +08:00
rcalago add089ed5e
Update README.md 2024-03-21 23:39:20 +08:00
rcalago b31ede967f
Update README.md 2024-03-21 23:37:05 +08:00
rcalago 4a87ccbb01
Update README.md 2024-03-21 23:34:23 +08:00
rcalago 26c5a38a28
Update README.md 2024-03-21 23:24:39 +08:00
rcalago debd762c51
Update README.md 2024-03-21 23:14:03 +08:00
rcalago 3019e85e4f
Update README.md 2024-03-21 23:12:06 +08:00
rcalago 9dc79459fb
Update README.md 2024-03-21 23:10:40 +08:00
Wynn Teo 1d289c30b9
Bael 7641 (#16099)
* BAEL-7490 read write file in separate thread

* Change the to try resources

* Update the code to sync with article

* code demostration for ExecutorService vs CompletableFuture
2024-03-20 20:22:00 -05:00
DiegoMarti2 30b95b0161
baeldung-articles : BAEL-6402 (#16185)
* baeldung-articles : BAEL-6402

Normalizing the EOL Character in Java

* Add dep to pom.xml file
2024-03-20 15:02:21 -07:00
Kai.Yuan 0242528345 [add-to-immutable-list] replace list.copyof with collections.unmodifiableList 2024-03-20 17:20:04 +01:00
Wynn Teo 503774a05e
Bael 7616 (#15985)
* BAEL-7490 read write file in separate thread

* Change the to try resources

* Update the code to sync with article

* BAEL-7616 check if date object is yesterday

* Update test vars

* change the variable name prefix

* Update the test variable name
2024-03-19 20:07:54 -05:00
Kai.Yuan 356624bf22 [add-to-immutable-list] add elements to immutable list 2024-03-19 23:54:56 +01:00
danielmcnally285 9439463838 move BeforeEach to top of class 2024-03-19 20:02:44 +00:00
danielmcnally285 ab35aeabf7
Merge branch 'eugenp:master' into danielmcnally285_last_n_characters 2024-03-19 19:59:07 +00:00
Kai.Yuan 9456b4b953 [map-stream-to-map] updates.. 1 2024-03-19 09:32:58 +01:00
MohamedHelmyKassab 51ec697ebc
This commit is related to BAEL-6825 (#15981)
* This commit is related to BAEL-6825

This commit aims to add a test class "IntegersBitLevelUnitTest.java".

* Update IntegersBitLevelUnitTest.java

* Update IntegersBitLevelUnitTest.java

* Update IntegersBitLevelUnitTest.java

* Update IntegersBitLevelUnitTest.java
2024-03-18 20:24:13 +00:00
Bipin kumar 75ed16ffb5
[JAVA-31565] Changes made for update commons-validator (#16131) 2024-03-18 20:31:58 +01:00
Kai.Yuan 614d910766 [map-stream-to-map] merge a stream of maps to a single map 2024-03-18 20:02:15 +01:00
DiegoMarti2 bb3e43fdec
baeldung-articles : BAEL-6596 (#16143)
Check if a given time lies between two times regardless of date.
2024-03-18 11:40:01 -07:00
Liam Williams 89cb132fe1
Merge pull request #16137 from sk1418/calc-percentile
Calc percentile
2024-03-18 16:58:54 +00:00
Kai.Yuan e959114bc7 [add-to-immutable-list] wip 2024-03-17 17:27:57 +01:00
anujgaud cd5a95f764
Included import statements in Test file 2024-03-17 01:10:47 +05:30
anujgaud 9d0024b926
Apply formatting 2024-03-16 23:49:41 +05:30
anujgaud 576925e862
Create SetMatrixToZero.java 2024-03-16 23:36:32 +05:30
anujgaud 44aab18987
Delete core-java-modules/core-java-arrays-operations-advanced-2/src/main/java/com/baeldung/matrixToZero directory 2024-03-16 23:34:03 +05:30
anujgaud f88022796a
Create SetMatrixToZeroUnitTest.java 2024-03-16 23:32:11 +05:30
anujgaud 2922f0619f
Create SetMatrixToZero.java 2024-03-16 23:21:47 +05:30
danielmcnally285 96450ee79d add new lines before assert statements 2024-03-16 12:34:35 +00:00
danielmcnally285 82ca2b8b92 last n characters from string unit tests 2024-03-16 12:23:28 +00:00
Bipin kumar 8a2f4211c3
JAVA-32170_C_11: Changes made for Fix formatting of POMs - C_11 (#16112) 2024-03-15 23:54:51 +02:00
Bipin kumar 684902d716
JAVA-32170_C_10: Changes made for Fix formatting of POMs - C_10 (#16111) 2024-03-15 23:53:26 +02:00
Bipin kumar c3155551b6
JAVA-32170_C_09: Changes made for Fix formatting of POMs - C_09(#16110) 2024-03-15 23:52:33 +02:00
Bipin kumar f23750dcdc
JAVA-32170_C_08: Changes made for Fix formatting of POMs - C_08 (#16109) 2024-03-15 23:51:19 +02:00
Bipin kumar ce581549b9
JAVA-32170_C_07: Changes made for Fix formatting of POMs - C_07 (#16108) 2024-03-15 23:50:09 +02:00
Bipin kumar 8f0bbdb6c0
JAVA-32170_C_06: Changes made for Fix formatting of POMs - C_06 (#16107) 2024-03-15 23:48:49 +02:00
Bipin kumar d8aa0eeaef
JAVA-32170_C_05: Changes made for Fix formatting of POMs - C_05(#16106) 2024-03-15 23:46:57 +02:00
Bipin kumar 38c569055d
JAVA-32170: Changes made for Fix formatting of POMs - C_03 (#16105) 2024-03-15 23:43:53 +02:00
Bipin kumar c653562b79
JAVA-32170: Changes made for Fix formatting of POMs - C_02(#16104) 2024-03-15 23:42:20 +02:00
Kai.Yuan 2195e2c404 [calc-percentile] add 0 and 100 boundary test cases 2024-03-15 19:47:55 +01:00
adalagandev 83cc018515 BAEL-7131 - Removed InputStreamUnitTest as per Final review sugestions. 2024-03-15 18:08:35 +01:00
Bipin kumar 9236adee65
JAVA-32170: Changes made for Fix formatting of POMs - C_01(#16103) 2024-03-15 17:57:32 +02:00
Kai.Yuan 4c48476258 [calc-percentile] calc percentile 2024-03-15 14:45:38 +01:00
Loredana Crusoveanu 1ac881cfec
Merge pull request #16136 from collaboratewithakash/master
backlink updated
2024-03-15 12:27:11 +02:00
timis1 40326c74b1
[JAVA-32168] Cleanup un-committed or un-ignored artifacts - Week 11 - 2024 (#16124) 2024-03-15 09:11:50 +01:00
collaboratewithakash 99c68beb3c
backlink removed 2024-03-15 13:01:13 +05:30
collaboratewithakash 9fe8ce5906
backlink updated 2024-03-15 12:29:24 +05:30
collaboratewithakash 1bedbb4b2f
backlink added 2024-03-15 12:19:29 +05:30
collaboratewithakash 6a22da4d1c
backlink added 2024-03-15 12:17:09 +05:30
collaboratewithakash 6d4aae6ec9
backlink updated 2024-03-15 12:06:57 +05:30
Diegom203 f13baaf5d2
baeldung-articles : BAEL-7500 (#16084)
* baeldung-articles : BAEL-7500

Adding elements to a collection during iteration.

* I modify the ListIterationUnitTest.java
2024-03-14 11:58:01 -07:00
panos-kakos a39f20151d
[JAVA-30626] Clean up guava dependencies (#16098)
* [JAVA-30626] Clean up guava dependencies

* [JAVA-30626] Clean up guava dependencies

* [JAVA-30626] Clean up guava dependencies

* [JAVA-30626] Clean up guava dependencies

* [JAVA-30626] Clean up guava dependencies
2024-03-14 00:44:56 +01:00
Loredana Crusoveanu ea56a5b9f4
Merge pull request #16121 from collaboratewithakash/master
backlink added or updated
2024-03-13 15:31:18 +02:00
rcalago 9114dde558
Update README.md 2024-03-13 15:04:10 +08:00
rcalago ed5c492060
Update README.md 2024-03-13 15:01:37 +08:00
Harry9656 535d9a97b4
[JAVA-31568] Upgrade org.json and json-path libraries 2024-03-11 21:16:11 +01:00
sam-gardner a2b93f3128
JAVA-31562-Upgrade-liquibase-core-version (#15990) 2024-03-10 23:00:35 +01:00
adalagandev 63741db3d9 BAEL-7131 - Updated for final review comments 2024-03-10 22:34:19 +01:00
Kai.Yuan 38d0425b2f [calc-percentile] wip 2024-03-10 18:04:08 +01:00
Wynn Teo a3ff5e0ec6
Bael 7599 (#16022)
* BAEL-7490 read write file in separate thread

* Change the to try resources

* Update the code to sync with article

* BAEL-7599 find majority element

* Added additional check on unit test

* Update the index checking

* Update the return type to Integer
2024-03-09 20:42:08 -06:00
rcalago 14efc97f6a
Update README.md 2024-03-09 06:16:31 +08:00
rcalago 55ac1b1055
Update README.md 2024-03-09 06:06:45 +08:00
DiegoMarti2 8ca61a8c38
baeldung-articles : BAEL-6349 (#16067)
Obtaining the Last Path Segment of a URI in Java.
2024-03-08 09:22:29 -08:00
adalagandev 03b2f8bb58 BAEL-7131 - Updated pom.xml under core-java-io-apis-2 2024-03-07 23:53:35 +01:00
davidmartinezbarua 58a2d16101
Merge pull request #16030 from palani-a/BAEL-7495
BAEL-7495: Blowfish Encryption Algorithm
2024-03-07 19:28:58 -03:00
Dominique Plante 1ce195f8df
Merge pull request #15938 from yadavan88/BAEL-7588
Added code sample and test for getting initials for a name
2024-03-06 20:32:48 -08:00
Imran Alam b09f501333
Update PeakElementFinderUnitTest.java 2024-03-06 12:20:13 +05:30
Imran Alam c204c4c073
Update PeakElementFinder.java 2024-03-06 12:04:06 +05:30
Imran Alam dd251d2d33
Update PeakElementFinderUnitTest.java 2024-03-06 12:02:28 +05:30
Imran Alam 2f18d71810
Update SinglePeakFinderUnitTest.java 2024-03-06 12:01:13 +05:30
adalagandev 069952c65c BAEL-7131 - updated based on review comments from Final Review. 2024-03-06 01:22:17 +01:00
panos-kakos 95a8bbe3f2
[JAVA-31566] Upgrade okhttp to latest version (#15983) 2024-03-04 08:39:28 +01:00
Palaniappan Arunachalam 2c8d3e374a BAEL-7495: Blowfish Encryption Algorithm 2024-03-03 16:27:35 +05:30
Liam Williams c35329d003
Merge pull request #15962 from sk1418/modify-print-list
[modify-print-list] modify + print a list
2024-03-02 13:44:45 +00:00
collaboratewithakash f6bfa31175
backlink removed 2024-03-02 15:13:46 +05:30