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.
5 questions from the last 30 days
2
votes
1
answer
87
views
Simulating die streaks and counting the number of matches in Java
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 ...
5
votes
1
answer
218
views
ObjectBucketSort.java with running time statistics
Intro
This time, I present the ObjectBucketSort, a stable sorting algorithm for objects.
Code
...
3
votes
1
answer
65
views
Wrapper / Utils for creating an instance of JCache's CacheManager implemented by Redisson or Caffeine
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 ...
4
votes
3
answers
564
views
ObjectCountingSort.java
Intro
This time, I was in the mood for generalizing counting sort to arbitrary (Comparable) objects.
Code
...
6
votes
1
answer
662
views
Batcher's sort in Java: a θ(N log N log N) sorting algorithm
Intro
This time I have implemented the Batcher's sort.
Code
io.github.coderodde.util.BatchersSort.java:
...