Commit Graph

1939 Commits

Author SHA1 Message Date
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
Asjad J 2f82564ea3 Updated README.md
added link back to the article: https://www.baeldung.com/java-reverse-arraylist
2022-06-02 12:07:25 +05:00
Asjad J e06edd0e37 Updated README.md
added link back to the article: https://www.baeldung.com/java-sort-list-by-date
2022-06-02 11:38:36 +05:00
Asjad J e667175a50 Updated README.md
added link back to the article: https://www.baeldung.com/java-httpclient-timeout
2022-06-02 07:54:58 +05:00
doodoroma 9f1b9d12db Merge pull request #12257 from ukhan1980/BAEL-5556-code-for-sorting-article
[BAEL-5556] Add code for sorting article
2022-06-01 20:59:28 +02:00
Loredana Crusoveanu 9fdde5c323 various fixes 2022-06-01 16:19:28 +03:00
Kai Yuan fcdf53f3e4 BAEL-5623 reverse list article (#12253)
* reverse list article

* fix the package
2022-05-31 22:58:26 -05:00
uzma khan fb5dfc72cd [BAEL-5556] Add code for sorting article 2022-05-30 12:04:18 +01:00
kwoyke a7cae2e766 JAVA-9609: Create manual test for POSTing with HttpURLConnection (#12263) 2022-05-29 13:22:09 +05:30
Loredana Crusoveanu d8a9f121d9 Merge pull request #12110 from doljae/master
Remove unused imports
2022-05-27 21:37:26 +03:00
Mayank Aggarwal 26224e4686 BAEL-5558 (#12222)
* [BAEL-5438] Added Criteria Queries for Employee

* [BAEL-5558] Sorting By Date in Java

* BAEL-5558: Added and refactored tests name

* [BAEL-5558] Refactored the code.

* [BAEL-5558] Resolved PMD violation.

* [BAEL-5558] Indented with 4 spaces

* Refactored the Employee class

Co-authored-by: Mayank Agarwal <mayankaggarwal@zeta.tech>
2022-05-27 08:07:59 -07:00
vunamtien 9c40bfe297 BAEL-5487-java-httpclient-custom-header (#12269)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2022-05-27 13:48:42 +02:00
Loredana Crusoveanu 59314162f0 Merge pull request #12252 from Asjad-J/master
Updated README.md
2022-05-23 20:14:14 +03:00
Harry9656 8f54543306 JAVA-5484: Added Java Http Request Timeout (#12248)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-05-23 09:27:46 -07:00
Asjad J 1abbf7083d Updated README.md
added link back to the article: https://www.baeldung.com/java-check-character-vowel
2022-05-23 17:32:59 +05:00
kwoyke 1766f9b493 Merge pull request #12245 from anuragkumawat/JAVA-11422
JAVA-11422 Update article - A Guide To Java Regular Expressions API
2022-05-23 14:32:16 +02:00
Asjad J b208b96505 Updated README.md
added link back to the article: https://www.baeldung.com/java-domain-name-from-url
2022-05-23 17:30:29 +05:00
Asjad J 59dcedba09 Merge branch 'eugenp:master' into master 2022-05-23 17:27:48 +05:00
kwoyke 86540ddcc7 Merge pull request #12241 from anuragkumawat/JAVA-11421
JAVA-11421 Update article - RegEx for matching Date Pattern in Java
2022-05-23 14:22:14 +02:00
Asjad J d8adffdbb2 Updated README.md
added link back to the article: https://www.baeldung.com/jdk-com-sun-proxy
2022-05-23 17:15:39 +05:00
Asjad J 44a0ff9d9b Updated README.md
added link back to the article: https://www.baeldung.com/java-files-match-wildcard-strings
2022-05-23 16:52:12 +05:00
Asjad J fe2f7ca04c Updated README.md
added link back to the article: https://www.baeldung.com/java-scanner-usedelimiter
2022-05-23 16:42:16 +05:00
kwoyke a08700d5d4 Merge pull request #12243 from hkhan/JAVA-11892-logs-cleanup
[JAVA-11892] Logging  clean up
2022-05-23 08:50:10 +02:00
anuragkumawat 147d60e528 JAVA-11422 Update article - A Guide To Java Regular Expressions API 2022-05-22 12:46:31 +05:30
Haroon Khan 1efe19f383 [JAVA-11892] Logging clean up 2022-05-21 21:29:02 +01:00
anuragkumawat d46b2d0684 JAVA-11421 Update article - RegEx for matching Date Pattern in Java 2022-05-21 17:33:00 +05:30
apeterlic c3d957205a Move code to different module 2022-05-19 07:03:06 +02:00
apeterlic ae6ed6ba95 Get domain name from given URL 2022-05-19 06:50:58 +02:00
opokharel f8ce248236 [BAEL-5554] Find files that match a wildcard string in Java by @opokharel (#12190)
* BAEL-5554 by @opokharel

* deletedToMoveToSrcFolder

* movedToSrcFolder

* redoingForJenkins

* newPR for [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* @opokharel

* [BAEL-5554] @opokharel

* [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* Update SearchFileByWildcardTest.java

* Update SearchFileByWildcard.java

* Update SearchFileByWildcard.java

* Create SearchFileByWildcardUnitTest.java

* Delete SearchFileByWildcardTest.java

* [BAEL-5554] Find files that match a wildcard string in Java by @opokharel

* Update SearchFileByWildcardUnitTest.java

* Update SearchFileByWildcardUnitTest.java

* [BAEL-5554] UnitTestFiles by @opokharel

* Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/searchfilesbywildcards/SearchFileByWildcardUnitTest.java

Co-authored-by: KevinGilmore <kpg102@gmail.com>

* updated curly braces and assertions

Co-authored-by: KevinGilmore <kpg102@gmail.com>
2022-05-18 19:36:27 -05:00