Commit Graph

2267 Commits

Author SHA1 Message Date
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
panos-kakos ac619f1f4b [JAVA-14461] Improvement/ making code more declarative (#12710)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-09-11 11:59:03 +05:30
Kai Yuan 1b334f6a2d Positive or negative (#12706)
* Check if a number is positive or negative in Java

* reformat single line if/else statements

* Check if a number is positive or negative in Java

* [positiveOrNegative] using compareTo() instead of == to compare float numbers

* [positiveOrNegative] re-org imports
2022-09-10 10:06:11 -05:00
Harry9656 cbcf5d4050 BAEL-5712: Improvement in Listing files under directory (#12643)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-09-08 21:48:29 +01:00
Loredana Crusoveanu b8bab5bcbe Merge pull request #12556 from GeoffChurch/insertInStream
Improve `insertInStream`
2022-09-08 10:35:33 +03:00
davidmartinezbarua c1a759900e Merge pull request #12678 from thibaultfaure/article/BAEL-5709-find-roots-of-a-quadratic-equation
BAEL-5709 code for the Finding the roots of a quadratic equation article
2022-09-05 21:03:35 -03:00
thibault.faure faaebaddbe BAEL-5709 code for the Finding the roots of a quadratic equation article 2022-09-05 22:07:07 +02:00
Eugene Kovko 06fc7ae257 BAEL-4795: Static garbage collected fields (#12693)
* BAEL-4795: Static garbage collected fields

* BAEL-4795: Fix readAllBytes()
2022-09-05 08:45:31 -07:00
Asjad J 4346ab2887 Updated README.md
updated the link to article
2022-09-03 21:47:42 +05:00
Azhwani 44f273b735 BAEL-4623: Add a new section for Scanner article (#12453) 2022-09-03 12:51:25 +02:00
Asjad J 795cbd3325 Updated README.md
added link back to the article: https://www.baeldung.com/java-integer-division-float-result
2022-09-02 09:00:15 +05:00
Asjad J 1215215c51 Updated README.md
added link back to the article: https://www.baeldung.com/java-compare-characters
2022-09-02 08:56:20 +05:00
Asjad J 62abc51405 Updated README.md
added link back to the article: https://www.baeldung.com/java-remove-last-character-stringbuilder
2022-09-02 08:54:02 +05:00
Asjad J 1ab14889e2 Updated README.md
added link back to the article: https://www.baeldung.com/java-list-factors-integer
2022-09-02 08:50:53 +05:00
Bogdan Cardoş c3204d4a2e BAEL-5617 Handle classes with the same name in Java (#12676)
* 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
2022-09-01 07:33:41 -07:00
Ulisses Lima 8edd76ccb0 "Vendredi" is Friday in french, not Wednesday 2022-08-30 11:02:12 -03:00
vunamtien 72daf77666 BAEL-5615-gen-md5-checksum-of-file (#12668)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-08-30 15:51:01 +02:00
Kai Yuan 78b7c6dcf8 Make Division of Two Integers Result in a Float (#12658) 2022-08-29 19:08:50 -05:00
Azhwani 15581547df BAEL-5390: Compare Characters in Java (#12633)
* BAEL-5390: Compare Characters in Java

* create new module core-java-string-operations-5
2022-08-28 18:53:06 +02:00
Kai Yuan d8599a4c35 Remove the last character of a Java StringBuilder (#12653) 2022-08-27 11:07:36 -05:00
Kai Yuan 0ea458117e List all factors of a number in Java (#12646)
* List all factors of a number in Java

* format the map code in the test
2022-08-26 20:26:38 -05:00
Haroon Khan eb24cfa8be [JAVA-13010] Convert file tests to manual tests (#12561) 2022-08-26 14:17:08 +05:30
Asjad J 2da3b9df1d Updated README.md
added link back to the article: https://www.baeldung.com/java-armstrong-numbers
2022-08-25 21:45:03 +05:00
Asjad J c086d40875 Updated README.md
added link back to the article: https://www.baeldung.com/java-arrays-aslist-vs-list-of
2022-08-25 21:35:11 +05:00
Asjad J 6a2c013bf1 Updated README.md
added link back to the article: https://www.baeldung.com/locked-ownable-synchronizers
2022-08-25 21:31:46 +05:00
Asjad J 46b3bde188 Updated README.md
added link back to the article: https://www.baeldung.com/java-toggle-boolean
2022-08-25 17:04:21 +05:00
Asjad J 8bc901c7d1 Updated README.md
added link back to the article: https://www.baeldung.com/java-check-number-positive-negative
2022-08-25 16:59:44 +05:00
Asjad J 0a0edd8569 Updated README.md
added link back to the article: https://www.baeldung.com/java-tostring-valueof
2022-08-25 16:23:45 +05:00
Kai Yuan 18d1cb40dc Armstrong Number in Java (#12637) 2022-08-24 20:40:26 -05:00
kpentaris 876d78b188 [BAEL-4500] Add locked ownable synchronizers example code (#12608)
* Add locked ownable synchronizers example code

* refactor application snippet
2022-08-24 15:47:46 +02:00
Harry9656 77671ade4b JAVA-5683: Difference Between List.of and Arrays.asList (#12564)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-08-23 22:22:43 +01:00
Kai Yuan a20006b451 toggle boolean (#12618) 2022-08-21 11:43:45 -05:00
Kai Yuan 842a71ad92 Check if a number is positive or negative in Java (#12604)
* Check if a number is positive or negative in Java

* reformat single line if/else statements

* Check if a number is positive or negative in Java
2022-08-20 21:46:14 -05:00
Dhawal Kapil b38eb760d1 JAVA-13941 Incremented version of esapi (#12621) 2022-08-19 23:09:28 +05:30
panos-kakos 520c7d7083 [JAVA-13944] Upgrade lombok dependency for main pom.xml + child modules (#12617)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:13:42 +05:30
panos-kakos 99adc6e67e Java 13945 (#12611)
* [JAVA-13945] Upgrade guava version to 31.1-jre

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] Use guava.version property in child modules

* [JAVA-13945] revert changes

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-08-19 12:06:35 +05:30
freelansam 23f33d32fe JAVA-13826: Align module names, folder names and artifact id (#12601) 2022-08-19 12:04:58 +05:30
Loredana Crusoveanu fad5f79b8c Merge pull request #12610 from Asjad-J/master
Updated README.md
2022-08-17 20:30:15 +03:00
sdhiray7 087a50b2e7 [BAEL-5661] Integer.toString(int i) vs String.valueOf(int i) (#12606)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments

* Create unit test file

* Remove unnecessary files

* Update package name
2022-08-17 17:34:12 +02:00
Asjad J aba86e1819 Updated README.md
added link back to the article: https://www.baeldung.com/java-streams-multiple-filters-vs-condition
2022-08-17 16:37:28 +05:00
Asjad J 75d7bb2f55 Updated README.md
added link back to the article: https://www.baeldung.com/java-string-formatting-named-placeholders
2022-08-17 16:27:03 +05:00
davidmartinezbarua ff63982af2 Merge pull request #12590 from etrandafir93/features/BAEL-5674-streams-multiple-vs-single-filters
BAEL-5674: added code examples for the article
2022-08-16 15:55:52 -03:00
anuragkumawat e96af43f40 JAVA-12628 Rename CountdownLatchResetExampleUnitTest (#12602) 2022-08-16 22:14:49 +05:30
Kai Yuan 8ce82953c5 Named Placeholders in String Formatting (#12576)
* Named Placeholders in String Formatting

* assert notEqualTo
2022-08-15 19:48:15 -05:00
sdhiray7 06ac43bc9e [BAEL-5661] Integer.toString vs String.valueOf (#12591)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments

* Create unit test file

* Remove unnecessary files
2022-08-14 20:23:47 +02:00
emanueltrandafir1993 536866c40b BAEL-5674: added code examples for the article 2022-08-13 18:44:03 +02:00
Asjad J f94832fc6a Updated README.md
added link back to the article: https://www.baeldung.com/java-arraylist-replace-at-index
2022-08-10 09:37:05 +05:00
Asjad J 0bd6992a8a Updated README.md
added link back to the article: https://www.baeldung.com/java-aslist-vs-singletonlist
2022-08-10 09:25:46 +05:00
Asjad J 659cfd8a27 Updated README.md
added link back to the article: https://www.baeldung.com/java-interval-contains-integer
2022-08-10 09:23:50 +05:00
Asjad J 799fa1ade9 Updated README.md
added link back to the article: https://www.baeldung.com/java-get-current-stack-trace
2022-08-10 09:21:59 +05:00
Asjad J 835a3457ba Updated README.md
added link back to the article: https://www.baeldung.com/java-volatile-vs-atomic
2022-08-10 09:14:15 +05:00
Asjad J f4d37de96b Updated README.md
added link back to the article: https://www.baeldung.com/java-multiple-keys-map
2022-08-10 08:57:37 +05:00
Asjad J c1c875b5b1 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-instance-initializer-blocks
2022-08-10 08:55:16 +05:00
Asjad J 989446fd3b Updated README.md
added link back to the article: https://www.baeldung.com/java-filter-stream-unique-element
2022-08-10 08:52:55 +05:00
Dhawal Kapil b50060aea4 Task/java 13772 (#12579)
* JAVA-13772 Updated the link of PDF to a valid one

* JAVA-13772 Updated File url and checksum
2022-08-09 22:19:56 +05:30
Keerthi cdb19ff6d5 JAVA-12045 : move java concurrency ebook content code to common module (#12559)
* JAVA-12045 : move java concurrency ebook content code to common module

* JAVA-12045: addressed the review comments .. renamed package names and placed core-java-concurrency-simple module in pom.xml

* JAVA-12045: removed duplicate module after renaming java-simple-module to core-java-simple-module
2022-08-08 18:56:55 +05:30
Dhawal Kapil 2db5fcea1e JAVA-13416 Converting to *LiveTest as it makes live call to httpbin URLs (#12573) 2022-08-06 23:56:44 +05:30
hesamghiasi ba99476330 fixing time ago unit tests (#12560)
* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone

* adding getCurrentTime method to TimeAgoCalculatorUnitTest in order to always return the same time and avoid problems related to reading date from local system.
adding two methods to TimeAgoCalculator to always return the same date as the current date in order to avoid problems related to reading current time from local host. One of these two methods accepts time zone
correcting some formattings
adding comments in code to clarify adding of getCurrentTime methods

* reverting changes to ZuulConfig
2022-08-06 19:08:59 +05:30
Kai Yuan 8ec8c01a67 Arrays.asList() vs Collections.singletonList() (#12552) 2022-08-03 21:38:13 -05:00
sdhiray7 a6ef4b67d1 BAEL-5608 - Get current stack trace java (#12533)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3

* Initial commit for get current stacktrace

* Remove old files

* Name updates

* Jenkins error

* changes to file name

* Review comments
2022-08-02 19:36:48 -05:00
Eugene Kovko 614795051e BAEL-5682 - Atomic vs Volatile (#12528)
Co-authored-by: eugene.kovko <eugene.kovko@tensquaregames.com>
2022-08-01 20:16:24 -05:00
Geoffrey Churchill 8a88b469e0 Remove old method 2022-07-31 16:26:44 -04:00
Geoffrey Churchill 5a1208f029 Improve `insertInStream`
New version works with infinite streams and has constant space/time complexity.
2022-07-31 14:25:22 -04:00
Loredana Crusoveanu 8db0d7b277 Merge pull request #12548 from Asjad-J/master
Updated links titles
2022-07-31 15:27:12 +03:00
Matei Cernăianu 858e158680 BAEL-5651: How to check if an integer is in a given range? (#12470)
* BAEL-5651: How to check if an integer is in a given range?

* BAEL-5651: How to check if an integer is in a given range?
2022-07-30 19:18:52 -04:00
ACHRAF TAITAI d0ba47e75d BAEL-5643 : Replace at Specific Index in Java ArrayList (#12539) 2022-07-30 14:22:59 +02:00
lalitrajput72 ef758acef0 [BAEL-5622] static vs instance initializer block (#12271)
* Deep copy vs Shallow copy Code commit

* Static and instance block

* Deep copy branch chanaged from master to other

* static vs instance block

* Update InstanceBlockExample.java

* Update StaticBlockExample.java

Co-authored-by: Lalit Rajput <lalit.rajput@globallogic.com>
Co-authored-by: paritoshsunny <sams.sunny.16@gmail.com>
2022-07-30 12:39:02 +02:00
Asjad J be5e772318 Updated README.md
Updated link title in README from 'Sealed Classes and Interfaces in Java 17' to 'Sealed Classes and Interfaces in Java'
2022-07-30 06:34:42 +05:00
Asjad J 463a4aeee9 Merge branch 'eugenp:master' into master 2022-07-28 23:22:56 +05:00
Asjad J b358b17bc0 Updated README.md
added link back to the articles: https://www.baeldung.com/java-string-remove-whitespace
2022-07-28 23:15:33 +05:00
davidmartinezbarua c0d5df745e Merge pull request #12505 from thibaultfaure/articles/BAEL-5663-filter-java-stream-to-only-one-element
BAEL-5663 code for the filter java stream to only one element article
2022-07-28 14:44:35 -03:00
Avin Buricha cf4225a9ea Moved article code to new module (#12423) 2022-07-27 16:31:18 +02:00
Graham Cox d083a20aa9 BAEL-5686: Implementing a Map with Multiple Keys (#12531) 2022-07-26 21:11:45 +02:00
thibault.faure 2c901e1d67 BAEL-5663 code for the filter java stream to only one element article 2022-07-25 23:26:17 +02:00
Kai Yuan 6b8313682e BAEL-5693 rm whitespace from a string (#12515) 2022-07-21 21:58:46 -05:00
anuragkumawat 662f3c4f3e JAVA-13328 Update Convert Byte Size Into a Human-Readable Format in Java 2022-07-16 14:28:46 +05:30
freelansam d7c38b05d6 Merge branch 'master' into JAVA-13136 2022-07-15 10:01:48 +05:30
sampadawagde 2b5179baba JAVA-13136: Fix formatting of POMs 2022-07-15 09:59:54 +05:30
Haroon Khan 8bf83f0fe6 [JAVA-13290] Update record name 2022-07-14 10:50:07 +01:00
Asjad J 5dd6471390 Updated README.md
added link back to the article: https://www.baeldung.com/java-truncating-strings
2022-07-14 08:41:09 +05:00
Asjad J 7bd70abf86 Updated README.md
added link back to the article: https://www.baeldung.com/java-wildcard-imports
2022-07-14 08:32:27 +05:00
Asjad J 38ab64081a Updated README.md
added link back to the article: https://www.baeldung.com/java-full-path-of-jar-from-class
2022-07-14 08:28:02 +05:00
Asjad J b4859d7778 Updated README.md
added link back to the article: https://www.baeldung.com/java-clear-stringbuilder-stringbuffer
2022-07-14 08:23:36 +05:00
Asjad J 263803754a Updated README.md
added link back to the article: https://www.baeldung.com/jar-windows-executables
2022-07-14 08:17:00 +05:00
Asjad J 24ace64b2e Updated README.md
added link back to the article: https://www.baeldung.com/java-record-vs-lombok
2022-07-14 08:13:33 +05:00
kwoyke ce2ecef1e7 Merge pull request #12472 from jsgrah-spring/master
close #12095
2022-07-12 10:17:01 +02:00
kwoyke 6f6612608d Merge pull request #12471 from anuragkumawat/JAVA-13089
JAVA-13089 Verify Java Base64 Encoding and Decoding article
2022-07-12 09:23:43 +02:00
Abdul Wahab c0bba594a2 BAEL-5616: Added java wildcard imports example (#12448)
Co-authored-by: Abdul Wahab <abdul.wahab@monese.com>
2022-07-11 09:12:14 +05:30
Kai Yuan b372864029 BAEL-5650 jar file path (#12463)
* BAEL-5650 jar file path

* move to jar module
2022-07-10 21:09:49 -05:00
thibaultfaure 4c1e18b15e BAEL-5610 Code for the clearing stringbuilder or stringbuffer article (#12378)
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
2022-07-10 13:22:08 +01:00
anuragkumawat 138c224907 JAVA-13089 Verify Java Base64 Encoding and Decoding article 2022-07-09 15:07:47 +05:30
davidmartinezbarua 2823129540 Merge pull request #12413 from opokharel/master
[BAEL-5421] by @opokharel
2022-07-08 15:03:49 -03:00
davidmartinezbarua 21ef5131d1 Merge pull request #12444 from etrandafir93/features/BAEL-5639-lombok_vs_records
BAEL-5639: added code samples for the article
2022-07-08 14:54:16 -03:00
davidmartinezbarua 39296fbf57 Merge pull request #12381 from thibaultfaure/improvements/BAEL-5180-sealed-classes
BAEL-5180 improvement on the article about sealed class
2022-07-08 14:34:02 -03:00
bipster b14f9aabac Merge pull request #12380 from azhwani/BAEL-5550
BAEL-5550: Truncate a string
2022-07-06 15:59:22 -04:00
Azhwani d46370d88f BAEL-5550: Trim a string based on the string length 2022-07-06 18:56:35 +02:00
jogra 535abc8f7a close #12095 2022-07-05 13:26:34 +00:00
Asjad J f94ede6fe1 Updated README.md
added link back to the article: https://www.baeldung.com/java-static-methods-use-cases
2022-07-05 15:52:08 +05:00
Asjad J deb37981aa Updated README.md
added link back to the article: https://www.baeldung.com/java-split-stream
2022-07-05 15:39:47 +05:00
Asjad J 9b75a64d9f Updated README.md
added link back to article: https://www.baeldung.com/java-inputstream-to-base64-string
2022-07-05 15:36:52 +05:00
Krzysiek 33cf52f917 JAVA-12865: Update readme 2022-07-05 09:13:52 +02:00
Daniel Strmecki 49d005b63e Feature/bael 5609 static method (#12370)
* BAEL-5609: init

* BAEL-5609: update examples

* BAEL-5609: refactor

* BAEL-5609: delete car example
2022-07-04 19:11:58 +01:00
kwoyke 5b66626806 Merge pull request #12439 from anuragkumawat/JAVA-12626
JAVA-12626 Fix AccountUnitTest in core-java-concurrency-advanced-3 module
2022-07-04 15:17:50 +02:00
kwoyke 217326c56e Merge pull request #12412 from anuragkumawat/JAVA-12080
JAVA-12080 Update When to Use a Parallel Stream in Java
2022-07-04 15:15:56 +02:00
anuragkumawat 2ff0071a65 JAVA-12080 Create and delete test files dynamically 2022-07-03 20:44:56 +05:30
emanueltrandafir1993 c3d805e5c0 BAEL-5639: added code samples for the article 2022-07-02 17:55:17 +02:00
anuragkumawat e1f020527a JAVA-12626 Fix AccountUnitTest in core-java-concurrency-advanced-3 module 2022-07-01 21:25:41 +05:30
thibault.faure 4298849d9e BAEL-5180 improvement on the article about sealed class
move code to java 17 and use getPermittedSubClasses instead of permittedSubClasses
2022-06-30 23:12:51 +02:00
Loredana Crusoveanu c534201ece Merge pull request #12427 from tudormarc/tudormarc-even-odd-negative-numbers
BAEL-5560 - small fix for negative numbers
2022-06-30 13:26:34 +03:00
mdabrowski-eu 40e42f8d45 BAEL-5557 Split a stream into parts (#12238)
* BAEL-5557 Split a stream into parts

* BAEL-5557 fix main pom.xml

* BAEL-5557 fix mvn profiles

* BAEL-5557 articles with equals and hashcode

* BAEL-5557 migrate assertions to assertj

* BAEL-5557 better assertions
2022-06-30 10:26:34 +01:00
tudor.marc ffe5873397 BAEL-5560 - quick fix for negative numbers 2022-06-30 10:24:43 +03:00
Christopher C. Smith 103a374ba1 Article/bael 5516 how to convert input stream to base64 string (#12219)
* java-shallow-deep tutorial

* BAEL-5516 How to Convert InputStream to base64 String
 - Junit test demonstrating the code

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
Cleaned up files

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
 - updated per Jira comments

* BAEL-5516 - How-to-Convert-InputStream-to-base64-String
 - rename and formatting to match Baeldung standards
2022-06-30 09:31:55 +05:30
Asjad J cee261bdcb Updated README.md
added link back to the article: https://www.baeldung.com/java-check-number-parity
2022-06-27 14:43:46 +05:00
Asjad J 7b420f92ec Updated README.md
added link back to the article: https://www.baeldung.com/jar-create-programatically
2022-06-27 12:50:39 +05:00
sampadawagde 90ba68c233 JAVA-12730: readme changes 2022-06-26 16:52:45 +05:30
sampadawagde 16f7224c44 JAVA-12730: modify parent pom 2022-06-26 16:26:33 +05:30
sampadawagde cba7eccc23 JAVA-12730: Rename java-collections-maps-3 to
core-java-collections-maps-5
2022-06-26 16:25:51 +05:30
sampadawagde a1fbbd3c0c JAVA-12730: Rename java-numbers-5 to core-java-numbers-5 2022-06-26 16:25:18 +05:30
sampadawagde 585717541c JAVA-12730: Rename java-numbers-4 to core-java-numbers-4 2022-06-26 16:24:57 +05:30
sampadawagde d3c8b9cdcf JAVA-12730: Rename java-numbers-3 to core-java-numbers-3 2022-06-26 16:24:35 +05:30
sampadawagde da4c248bbd JAVA-12730: Rename java-numbers-2 to core-java-numbers-2 2022-06-26 16:24:10 +05:30
sampadawagde f776d6d454 JAVA-12730: Rename java-numbers to core-java-numbers 2022-06-26 16:23:39 +05:30
sampadawagde 3502a350a4 JAVA-12730: Rename java-collections-conversions-2 to
core-java-collections-conversions-2
2022-06-26 16:22:56 +05:30
sampadawagde 45d808ce56 JAVA-12730: Rename java-collections-conversions to
core-java-collections-conversions
2022-06-26 16:22:21 +05:30
opokharel 90aa4a1239 BAEL-5421 by @opokharel
BAEL-5421 by @opokharel
2022-06-25 17:21:34 -06:00
opokharel 99a902b27b BAEL-5421 2022-06-25 12:48:16 -06:00
opokharel 6ff0745dce BAEL-5421 2022-06-25 12:45:17 -06:00
opokharel fac1883733 BAEL-5421 2022-06-25 12:41:04 -06:00
opokharel 8991dbe2df BAEL-5421 2022-06-25 12:36:55 -06:00
opokharel db1bf15694 BAEL-5421 2022-06-25 12:16:04 -06:00
opokharel 38664852dd BAEL-5421 2022-06-25 12:11:40 -06:00
opokharel 380b86b50e BAEL-5421 2022-06-25 11:57:23 -06:00
opokharel ca767321f7 BAEL-5421 2022-06-25 11:46:51 -06:00
opokharel baa612d3bb BAEL-5421 2022-06-25 11:42:18 -06:00
opokharel ded7b0af8f BAEL-5421 2022-06-25 11:35:39 -06:00
opokharel d29b19e148 BAEL-5421 2022-06-25 11:30:29 -06:00
opokharel acd0dc7894 BAEL-5421 2022-06-25 11:29:08 -06:00
opokharel c2bfe407de BAEL-5421 2022-06-25 11:09:55 -06:00
opokharel 1b29276c17 [BAEL-5421] by @opokharel
[BAEL-5421] by @opokharel
2022-06-25 11:00:26 -06:00
anuragkumawat bf6c478bb5 JAVA-12080 Update When to Use a Parallel Stream in Java 2022-06-25 22:17:32 +05:30
tudormarc 20dc126a64 BAEL-5560 - checking even and odd numbers (#12388) 2022-06-24 09:27:48 +05:30
kwoyke 69d21288b9 Merge pull request #12373 from anuragkumawat/JAVA-12359
JAVA-12359 Potential issue in Validate String as Filename in Java article
2022-06-23 21:26:38 +02:00
Loredana Crusoveanu a746e8119d BAEL-5632 add jar example 2022-06-22 13:45:36 +03:00
anuragkumawat 08a2c27339 JAVA-12359 Committing Test Cases for Colon and Slash Characters 2022-06-21 22:25:12 +05:30
Asjad J d6cbf68489 Updated README.md
added link back to the article: https://www.baeldung.com/java-destructor
2022-06-21 11:15:44 +05:00
Asjad J 2eda1aecd5 Updated README.md
added link back to the article: https://www.baeldung.com/java-calculate-time-ago
2022-06-21 11:13:13 +05:00
anuragkumawat 675e33fbab JAVA-12359 Code Review Changes 2022-06-20 20:55:14 +05:30
anuragkumawat 033ddb7a41 JAVA-11382 Update article Create an empty map in Java (#12383) 2022-06-20 18:46:31 +05:30
Loredana Crusoveanu bc4d404991 BAEL-5647 temporarily disable tests 2022-06-20 09:38:18 +03:00
anuragkumawat ca3fe06a56 JAVA-12359 Changes required in windows os test due to fix of unix os failing test 2022-06-18 11:56:32 +05:30
anuragkumawat 8d7014cfc0 JAVA-12359 Trying to fix failing unix platform test 2022-06-18 11:50:52 +05:30
anuragkumawat 2181c452d3 JAVA-12359 Fix jdk 9 and above build 2022-06-17 22:37:23 +05:30
anuragkumawat d81428bab7 JAVA-12359 Potential issue in Validate String as Filename in Java article 2022-06-17 22:26:31 +05:30
kwoyke d6dd1e2165 Merge pull request #12350 from dkapil/task/JAVA-11241
JAVA-11241 Added missing pom.xml for container modules and other cleanup
2022-06-17 09:02:21 +02:00
Dhawal Kapil 44fa00e0ea Task/java 12687 (#12367)
* JAVA-11493 Renamed spring-sleuth to spring-cloud-sleuth

* JAVA-12687 Fixed test by replacing site name with working site
2022-06-17 00:01:34 +05:30
Haroon Khan feaebfaafe [JAVA-12620] Fix link 2022-06-15 09:00:05 +01:00
Haroon Khan 3862ce78f3 [JAVA-12620] Split core-java-exceptions module 2022-06-14 21:56:25 +01:00
Dhawal Kapil a3a0fdfd96 JAVA-11241 Added missing pom.xml for container modules and other cleanup 2022-06-14 22:47:10 +05:30
hesamghiasi 1a1d011466 adding code for calculating time ago in Java for both version 7 and v… (#12313)
* adding code for calculating time ago in Java for both version 7 and version 8. The code contains pure java and third-party solutions.

* changing name of test classes to contain UnitTest in order to comply with the rules

* changing TimeGranularity.toMillis to abstract method
2022-06-14 17:22:57 +05:30
Asjad J c127ea183f Updated README.md
updated link for More articles from "/core-java-string-conversions-2" to "/core-java-modules/core-java-string-conversions-2"
2022-06-14 10:15:30 +05:00
Asjad J 4a59d16d5a Updated README.md
added link back to the article: https://www.baeldung.com/java-integer-parseint-vs-valueof

also updated the link for More articles from "/core-java-string-conversions" to "/core-java-modules/core-java-string-conversions"
2022-06-14 10:12:18 +05:00
Asjad J ede9aa9109 Updated README.md
added link back to the article: https://www.baeldung.com/java-unit-test-private-methods
2022-06-14 10:06:54 +05:00
Asjad J 8a6fd1ae8b Updated README.md
added link back to the article: https://www.baeldung.com/java-check-two-of-three-booleans
2022-06-14 10:04:16 +05:00
Asjad J f5172c74e2 Updated README.md
added link back to the article: https://www.baeldung.com/java-http-client-custom-header
2022-06-14 09:56:10 +05:00
Asjad J c8950386c6 Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-request-parameters
2022-06-14 09:54:16 +05:00
apeterlic 151e2981b8 Add - Is there a Destructor in Java (#12345) 2022-06-13 13:22:57 -07:00
sdhiray7 a21841a9f1 BAEL-5621 - parseInt vs valueOf in Java (#12275)
* Initial commit for Object copy in Java

* review comments commit for Object copy in Java

* Initial commit for parseInt vs valueOf java

* Review comments commit for parseInt vs valueOf java

* Modify readme

* review comments

* build failure

* build failure retry

* build failure retry remove parseInt(java.lang.String,int,int,int)

* build failure add comment

* change examples

* review comments

* review comments 2

* review comments 3
2022-06-10 18:05:39 +05:30
freelansam 2f2831e7cd JAVA-10605: Move multimodulemavenproject from core-java-modules to (#12309)
* JAVA-10605: Move multimodulemavenproject from core-java-modules to
maven-modules

* JAVA-10605: Move multimodulemavenproject to jdk9 build
2022-06-10 14:07:23 +05:30
Kai Yuan f2f8c0d0ac 3booleans (#12287)
* BAEL-4605: code and tests for composing constraints (#12180)

* BAEL-4605: code and tests for composing constraints

* BAEL-4605: small fix and formatted the code

* BAEL-4605: code review

* BAEL-4605: code and tests for composing constraints (#12180)

* BAEL-4605: code and tests for composing constraints

* BAEL-4605: small fix and formatted the code

* BAEL-4605: code review

Co-authored-by: etrandafir93 <75391049+etrandafir93@users.noreply.github.com>
2022-06-09 20:12:25 -05:00
etrandafir93 4d6f72f2a3 BAEL-5026: Sneaky Throws - refactoring and fixes (#12334)
* BAEL-5026: refactored code examples

* BAEL-5026: fixed test
2022-06-09 14:07:56 -07:00
thibaultfaure 34af11b770 BAEL-5461 code for the Unit Test Private Methods in Java article (#12240)
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
2022-06-09 16:19:24 +02:00
Krzysiek 55252bd755 JAVA-12099: Fix prev/next links 2022-06-08 08:40:34 +02:00
kwoyke fa6f3420d5 Merge pull request #12305 from keerthigadde/JAVA-12099/move-java-numbers
JAVA-12099 moved java-numbers modules to core-java-modules
2022-06-08 08:18:58 +02:00
Avin Buricha 74dbf0d0c9 BAEL-5486 Adding Parameters to Java HttpClient Requests (#11996)
* BAEL-5486 | Article Code

* BAEL-5486 | Remove comments and format fix

* BAEL-5486 | Add code sample

* BAEL-5486 | Common code extracted to a method

* BAEL-5486 | Use static import for Assertions

* BAEL-5486 | Removed external library

* BAEL-5486 | Removed BodyPublisher examples

* BAEL-5486 | Code examples added

* BAEL-5486 | Removed extra Class

Co-authored-by: Avin Buricha <avin.buricha@gupshup.io>
2022-06-07 17:32:10 +02:00
johnA1331 5effbad611 Update README.md 2022-06-07 17:18:21 +08:00
keerthigadde ace8e6a79f Merge branch 'master' of https://github.com/keerthigadde/tutorials into JAVA-12099/move-java-numbers
 Conflicts:
	core-java-modules/java-numbers-4/src/test/java/com/baeldung/bigdecimalzero/BigDecimalZeroChkUnitTest.java
2022-06-07 14:57:26 +10:00
keerthigadde 13070f30fc resolving conflicts 2022-06-07 13:37:28 +10:00
Asjad J 4c8b4485a4 Updated README.md
added link back to the article: https://www.baeldung.com/java-sort-list-alphabetically
2022-06-06 10:58:48 +05:00
keerthigadde 7d17e565cf corrected deleted line 2022-06-03 15:43:09 +10:00
keerthigadde d5117336ed JAVA-12099 moved java-numbers modules to core-java-modules 2022-06-03 15:10:13 +10:00