Skip to main content

Questions tagged [java]

Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and run-time environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

2 votes
1 answer
77 views

Intro Suppose we throw a die \$N\$ times. Before writing this program, I was puzzled by a question: How should I approach each trial. I got two options: Choose a single die number, count how many ...
coderodde's user avatar
  • 33.1k
5 votes
1 answer
217 views

Intro This time, I present the ObjectBucketSort, a stable sorting algorithm for objects. Code ...
coderodde's user avatar
  • 33.1k
3 votes
1 answer
65 views

I want to provide an instance of JCache's CacheManager that either points to a distributed cache managed by Redisson (used in production), or a Caffeine instance (used for testing). I want this code ...
PunDefeated's user avatar
4 votes
3 answers
564 views

Intro This time, I was in the mood for generalizing counting sort to arbitrary (Comparable) objects. Code ...
coderodde's user avatar
  • 33.1k
6 votes
1 answer
662 views

Intro This time I have implemented the Batcher's sort. Code io.github.coderodde.util.BatchersSort.java: ...
coderodde's user avatar
  • 33.1k
5 votes
5 answers
463 views

Intro (My previous, more restricted attempt is at A list iterator combiner in Java.) This time, I want to be able to do something like this: ...
coderodde's user avatar
  • 33.1k
4 votes
2 answers
279 views

Intro (The generalization of this post is CompoundIterable.java - combining multiple Iterable to a single one in Java.) My idea this time was to be able to write something like this: ...
coderodde's user avatar
  • 33.1k
5 votes
1 answer
191 views

I implemented the "frozen window" from my preview paper A Fractal Streaming Algorithm, Prime Patterning and the Infinitude of Twin Primes in order to count the "letters" in the ...
dragoness's user avatar
  • 379
1 vote
1 answer
65 views

I've implemented a lock-free Multi-Producer Multi-Consumer (MPMC) queue with commit semantics in Java. The queue is designed for scenarios where entities need to be processed exactly once, with ...
Muhammad_08's user avatar
5 votes
2 answers
374 views

Today I worked on a JavaFX project about fleet management and wondered what else I could add or improve. Unfortunately, the code is written in German, as are any comments. I hope that's not a problem. ...
user32091719's user avatar
3 votes
2 answers
436 views

Code io.github.coderodde.util.Task.java: ...
coderodde's user avatar
  • 33.1k
3 votes
2 answers
124 views

(I have also published this project on GitHub.) I am aware that some people view this as security through obscurity. The aim is to implement the port knocking technique in Java. I would like to know ...
Tobias Grothe's user avatar
4 votes
2 answers
423 views

From the previous post, I have incorporated the nice answers made by Chris and Chip01. Code ...
coderodde's user avatar
  • 33.1k
4 votes
2 answers
475 views

Intro (The previous version is here.) (The next version is here.) Now I have incorporated nice answers made by Chris and Chip01. What changed: Fixed the computation of median, ...
coderodde's user avatar
  • 33.1k
4 votes
3 answers
463 views

Intro (See the next iteration A tiny Java framework for gathering running time statistics - Take II.) I have this tiny Java framework that allows users to gather running time statistics of a piece of ...
coderodde's user avatar
  • 33.1k

15 30 50 per page
1
2 3 4 5
729