Commit Graph

3279 Commits

Author SHA1 Message Date
Maiklins d083e32b1a Update README.md 2023-10-11 23:36:00 +02:00
edizor 80a01d78cd Update README.md
[skip ci]
2023-10-12 05:26:40 +08:00
edizor 5f1c499cea Update README.md
[skip ci]
2023-10-12 05:18:05 +08:00
edizor 475111027f Update README.md
[skip ci]
2023-10-12 05:13:08 +08:00
ovidiumihaitacu 3e9ea6e299 Merge branch 'eugenp:master' into master 2023-10-11 20:59:46 +03:00
ovidiu-mihai98 b60089275f Created another module for core-java-reflection 2023-10-11 20:58:43 +03:00
Sam Gardner d4d4a0e1a4 BAEL-6895 extend String format test to cover negatives 2023-10-11 11:09:45 +01:00
Liam Williams daaefb0f26 Merge pull request #14807 from mcasari/master
BAEL-6846 - Converting from Float to BigDecimal in Java
2023-10-10 23:52:21 +01:00
Kai Yuan a74415a7c7 [rm-linebreaks-inFile] How to Remove Line Breaks From a File in Java (#14917) 2023-10-09 19:08:53 -05:00
Bhaskar Ghosh Dastidar a3148b3dd2 [BAEL-7035] improvement to value based class (#14938)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-10-09 13:08:57 -07:00
Anton Dalagan 3bd2e7eb3e Bael 6962 convert double to float in java (#14936)
* 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.

* BAEL-6962 - Made changes into the unit tests. Removed printlns, and updated isinstance with assertequals
2023-10-09 13:05:03 -07:00
ACHRAF TAITAI 150efcec72 BAEL-6984: Deprecate URL Public Constructors in Java 20 (#14934) 2023-10-09 13:01:20 -07:00
Bhaskar Ghosh Dastidar 8ffbb095da [BAEL-6955] finalization deprcation (#14932)
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2023-10-09 12:59:52 -07:00
@hangga e3ef6b6275 [Update] non static 2023-10-09 20:40:45 +07:00
@hangga 70e6dcd47b non static 2023-10-09 20:16:40 +07:00
Mo Helmy bb29bb9dcd Adding the new module to the main pom (#14924)
* This commit related to the article BAEL-6877

This commit aims to add a new Java module "core-java-collections-maps-7"

* Update pom.xml
2023-10-09 13:17:30 +02:00
Azhwani 1f3252df75 BAEL-6714: Convert Char Array to Int Array in Java (#14875) 2023-10-09 09:57:03 +02:00
Azhwani 52f4344bce BAEL-7057: How to convert CharSequence to String? (#14892) 2023-10-09 09:55:29 +02:00
Harry9656 901951bff7 BAEL-6898: Add Debug property for ssl Handshakes (#14822) 2023-10-09 09:53:54 +02:00
Rufina Uche 0e7c032aa8 Javadoublevsbigdecimal (#14862)
* Create BigDecimalConversionUnitTest.java

* Add files via upload

* Update BigDecimalConversionUnitTest.java

* Update BigDecimalConversionUnitTest.java

* Update BigDecimalConversionUnitTest.java
2023-10-09 09:53:46 +02:00
Kai Yuan b7f3161bc5 [bin-int-to-str] zero-padded binary string representation (#14885) 2023-10-08 21:30:55 -05:00
@hangga 92d038dc3c add default 2023-10-08 20:33:43 +07:00
@hangga 05f4487d63 [Update] no need to be public 2023-10-08 05:12:47 +07:00
Mo Helmy e62aba145b This commit related to the article BAEL-6877 (#14899)
This commit aims to add a new Java module "core-java-collections-maps-7"
2023-10-07 14:53:38 +02:00
etrandafir93 5aea5d5c29 BAEL-6782: partitioning streams (#14833)
* BAEL-6782: partitioning streams

* BAEL-6782: code reivew

* BAEL-6782: line continuations
2023-10-06 23:11:47 -05:00
panos-kakos 0c1ea7ae77 [JAVA-25962] Upgraded joda-time version to 2.12.5 2023-10-07 01:12:13 +03:00
Alvin Austria 27e89503fa JAVA-20429 : Used URI constructions instead of the deprecated URL constructors. 2023-10-06 23:12:32 +02:00
mcasari 68fd94288d change string constructor test case in simpler form 2023-10-06 21:57:56 +02:00
mcasari a8290e27cd Merge remote-tracking branch 'upstream/master' 2023-10-06 21:29:32 +02:00
Loredana Crusoveanu 428ec8cc6f Merge branch 'master' into master 2023-10-06 14:22:48 +03:00
edizor a9e906aa69 Update README.md
[skip ci]
2023-10-05 21:43:16 +08:00
edizor cb0bccfbd4 Update README.md
[skip ci]
2023-10-05 21:39:55 +08:00
edizor 4151a02bb6 Update README.md
[skip ci]
2023-10-05 19:34:57 +08:00
edizor 11cea0a956 Update README.md
[skip ci]
2023-10-05 19:26:10 +08:00
Bipin kumar d79e840c9d JAVA-25433: Fix the failing test in core-java-datetime-conversion (#14878) 2023-10-05 11:08:20 +03:00
edizor d9c845f3d2 Update README.md
[skip ci]
2023-10-05 15:57:02 +08:00
edizor 7607c700b5 Update README.md
[skip ci]
2023-10-05 15:52:15 +08:00
edizor cfcaee0e01 Update README.md
[skip ci]
2023-10-05 15:49:25 +08:00
edizor 5266e4d218 Update README.md
[skip ci]
2023-10-05 15:40:11 +08:00
edizor 39f1754fad Update README.md
[skip ci]
2023-10-05 15:38:21 +08:00
edizor 0c0dddef88 Update README.md
[skip ci]
2023-10-05 15:31:17 +08:00
Eugene Kovko d76083ae04 BAEL-6828: Finding the Square Root of a BigInteger in Java (#14903)
* BAEL-6828: Finding the Square Root of a BigInteger in Java

* BAEL-6828: Remove Java 9 annotation from the test

* BAEL-6828: Remove Java 9 profile
2023-10-04 09:23:38 -07:00
mcasari 7e1d5991e6 BAEL-6846 - tests revision due to article updates 2023-10-03 23:41:11 +02:00
mcasari 6f085f068a BAEL-6846 - minor code format fix 2023-10-03 18:34:40 +02:00
mcasari 89e987aa64 Merge remote-tracking branch 'upstream/master' 2023-10-03 18:29:06 +02:00
Alexandru Borza dc512cc408 BAEL-6971 Unnamed Classes and Instance Main Methods in Java 21 (#14841)
* BAEL-6727 Streams vs. Loops in Java

* BAEL-6971 - Unnamed Classes and Instance Main Methods in Java 21

* BAEL-6971 - decomment code

* BAEL-6971 - add child class

* BAEL-6971 - add unnamed class with method
2023-10-02 18:39:22 +05:30
Maiklins d1aa92f178 Merge pull request #14770 from niket17590/feature/BAEL-6963-ArrayList
BAEL-6963 - ArrayList with Multiple Object Types
2023-10-01 22:15:42 +02:00
mcasari 39c353c6ae BAEL-6846 - updates due to further discussion about float representation 2023-10-01 21:58:55 +02:00
Maiklins 9ca51279ae Update README.md 2023-10-01 21:56:19 +02:00
mcasari a493c570ad Merge remote-tracking branch 'upstream/master' 2023-10-01 21:48:56 +02:00
Kasra Madadipouya 0df6524e4a Merge pull request #14872 from timis1/JAVA-25350
JAVA-25350 Potential issue in "Sorting Java Map in Descending Order" …
2023-10-01 16:14:05 +02:00
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
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