Commit Graph

23 Commits

Author SHA1 Message Date
panos-kakos 13097b458f Java 16961 (#13236)
* [JAVA-16961] Moved code for article "Create an Empty Map in Java"

* [JAVA-16961] Alter README.md

* [JAVA-16961] Moved code for article "Sorting a Hashset in Java"

* [JAVA-16961] Added links to README.md files

* [JAVA-16961] Revert link changes

* [JAVA-16961] Replaced junit4 with junit5 annotations

* [JAVA-16961] test build

* [JAVA-16961] Added junit annotations

* [JAVA-16961] Added links

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-01-13 20:07:27 +05:30
panos-kakos d01629a246 Java 16960 (#13201)
* [JAVA-16960]

* [JAVA-16960]

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-12-28 00:28:30 +05:30
ACHRAF TAITAI 488bb057d6 BAEL-5927: Sorting a HashSet in Java (#13100)
* BAEL-5927: Sorting a HashSet in Java

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)

* BAEL-5927: Sorting a HashSet in Java (Refacto)
2022-12-17 20:34:14 +05:30
davidmartinezbarua 0a0d532995 Merge pull request #13099 from etrandafir93/features/BAEL-5819-java_collections_pecs
BAEL-5819: java collections pecs
2022-12-06 15:29:43 -03:00
Bhaskar Ghosh Dastidar e858d14b86 [JAVA-6029] reversing a stack (#13122)
* [JAVA-6029] reversing a stack

* [JAVA-6029] un-necessary file changes removed

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
2022-12-06 16:56:02 +01:00
Gaetano Piazzolla 53dbea8d56 BAEL-5921 | Guide to Java Priority Queue (#13087)
* BAEL-5921 | Guide to Java Priority Queue

* BAEL-5921 | Adressed comments

* BAEL-5921 | Fixed test

* BAEL-5921 | Fixed test
2022-11-27 20:00:09 +01:00
emanueltrandafir1993 d804060040 BAEL-5819: java collections pecs 2022-11-27 19:02:37 +01:00
Songting Xu 032b8e2d64 [BAEL-5840] Sort a collection of Objects on multiple fields (#12950)
* [BAEL-5840] Sort a collection of Objects on multiple fields

* Fix maven plugin version

* Fix pom again

* Fix again

* Move to core-java-collections-4 module

* Remove unused files

* Test renaming

* Handle NPE

* Use Nonnull annotation

* remove redundant dependency

* remove redundant scope

* Update pom.xml
2022-11-19 08:37:29 +05:30
Amit Kumar 63058bc24c Difference Between Java Enumeration and Iterator by amitkumar88265@gmail.com (#12844)
* added Enumertion and Iterator code example

* formatted the code

* formatted the code

* move code examples to other modules

* corrected the pkg name

* corrected the pkg name

* fixed compile time issue

Co-authored-by: Amit Kumatr <amit.kumar@fyndna.com>
2022-10-13 08:45:13 +05:30
Satyarth Shankar a17886f406 list vs set unit test (#12807)
* BAEL-5751 test commit for checkin builds

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

* BAEL-5751 moved code to a different module

* BAEL-5751 using assertArrayEquals

* BAEL-5751 new line at the end of file
2022-10-02 23:48:53 -07:00
Satyarth Shankar efa5e9fbeb list and set difference (#12787)
* BAEL-5751 test commit for checkin builds

* BAEL-5751 compiled with java 8

* BAEL-5751 small update

* BAEL-5751 added the core code

* BAEL-5751 moved code to a different module
2022-10-01 00:19:41 -07: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
anuragkumawat 033ddb7a41 JAVA-11382 Update article Create an empty map in Java (#12383) 2022-06-20 18:46:31 +05:30
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
Mayank Aggarwal 81b9558342 BAEL-5558: Sorting By Date in Java (#12132)
* [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.

Co-authored-by: Mayank Agarwal <mayankaggarwal@zeta.tech>
2022-05-09 12:04:56 -07:00
doodoroma 39c8314079 Merge pull request #11780 from mayank4all/BAEL-5351
Bael 5351: Added empty map initialization methods in Java 8 & java 9
2022-02-22 08:20:21 +01:00
Mayank Agarwal 7995f7d7c5 BAEL-5351: Moved to core-java-collections-4 2022-02-13 16:43:59 +05:30
Kai Yuan 052eb565bc Java Hashmap with different value types (#11495)
* Java Hashmap with different value types

* some fixes according to review comments

* convert liveTest -> unitTest

* convert liveTest -> unitTest
2021-11-30 18:17:36 -06:00
anmoldeep0123 c52cb1eaf3 BAEL-4494 | .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])? (#10903)
* BAEL-4220 | A Guide to IllegalAccessError and when it happens

* BAEL-4220 | A Guide to IllegalAccessError and when it happens | fix tests

* BAEL-4220 | A Guide to IllegalAccessError and when it happens | fix tests

* BAEL-4220 | A Guide to IllegalAccessError and when it happens | BDD test names

* BAEL-4494 | .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])?

* BAEL-4494 | .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])?

Co-authored-by: root <anmoldeep0123@gmail.com>
2021-06-24 06:36:23 +02:00
Kent@lhind.hp.g5 300052acd4 deque vs. stack article 2021-02-23 12:16:32 +01:00
Daniel Strmecki 79fc666e07 BAEL-4717: Refactor examples 2020-11-17 11:00:56 +01:00
Daniel Strmecki cc1a2e9b15 BAEL-4717: Added HashMap and LinkedList examples 2020-11-16 16:02:18 +01:00
Daniel Strmecki 796aefa996 BAEL-4717: Added ArrayList examples 2020-11-15 11:47:08 +01:00