Skip to main content

All Questions

3 votes
1 answer
104 views

Sequentially find the indexes of an element into a collection

Util class to find into a collection the indexes of a given element with multiple occurrences from the first index or relative to a given index. ...
user avatar
3 votes
1 answer
103 views

Resource manager class with basic dependency handling in java

Updates: I kept the original code here, while performed some changes on my machine, including: fixed the incorrect return documentation for clear() made the closing ...
Dávid Horváth's user avatar
0 votes
1 answer
2k views

Generic Binary Search Tree Implementation in Java

There is an implementation of Binary Search Tree. This is kind of based on Set Theory that duplicates are not allowed but an attempt to adding the same node twice will replace the older node. BSTNode ...
Hamidur Rahman's user avatar
0 votes
1 answer
236 views

Saving Reddit posts and comments from JSON into ArrayLists

I'm trying to get and save in an ArrayList Reddit posts and comments. The code is very similar for both: The RedditThing is a parent of RedditPost and RedditComment: ...
woodStone's user avatar
  • 143
2 votes
1 answer
3k views

Implementation of generic unordered list in java

This question is a follow-up question of this question. These features are added to the new class - Generic class User is capable of setting the size ...
Hamidur Rahman's user avatar
2 votes
1 answer
2k views

Generic filter model

I'd like to put some of my code under critique. The following code will take a supplier for elements and a filter function. Once provided -> the elements will be held by the model until "refresh" is ...
oopexpert's user avatar
  • 3,152
0 votes
1 answer
197 views

Reading Maps of strings and doubles from CSV

I want to have 2 classes responsible for reading dictionaries from CSV. The 1st class takes 2 columns from CSV and makes Map<String, String>. The 2nd class ...
wBacz's user avatar
  • 133
0 votes
1 answer
2k views

Implementation of a Generic Singly Linked List in Java

New to the site. Trying to implement a generic SinglyLinkedList, fetch returns null even though there are nodes inserted and delete method return false, when true is expected. In addition, it ...
Engr_Ondigo's user avatar
2 votes
2 answers
456 views

Generic OOP Implementation of a Deck-package in Java

I have posted some versions of this question (or at least similar ones) before. But I once again tried to improve it. The goal is to be able to use this package whether it's for a traditional card-...
Nilzone-'s user avatar
  • 1,436
0 votes
1 answer
337 views

Generic object pool [closed]

I'm doing research on GenericObjectPool by putting Cipher in pool so it can be reused. ...
user avatar
4 votes
1 answer
150 views

Test and implementation of a reorderable data structure that stores number of users (classifiable as per gender, country, etc.) of an Application

I have implemented a data structure that allows storage of number of users of a hypothetical application in a tree-like data structure in nodes as per their classification based on categories such as ...
Dhruva Bharadwaj's user avatar
10 votes
1 answer
1k views

Generic domain independent Monte Carlo Tree Search methods library

I've written this small generic library for the purpose of my Bachelor's thesis. It's fully functional and unit tested and I want to get as many opinions as possible regarding overall code quality (...
inejc's user avatar
  • 195
4 votes
1 answer
2k views

Sorting a linked list using mergesort

This sorts a linked list using mergegort. Can you please critique my code and provide your thoughts on where I should improve my code? ...
crondx's user avatar
  • 141