Problem I’m currently attempting to learn some basic JVM optimization techniques using JMH. I created the following bench to compare […]
Category: Java
Attempting to make my properties an enum based singleton
Problem I was attempting to implement my first singleton using an enum, was a bit of a struggle for me […]
Simple audio playback system
Problem I am trying to optimize my game written in Java and I used the VisualVM launcher for profiling and […]
Using BufferedReader to read lines of a file into a list
Problem To help improve my proficiency with Java, I would like to know how should I close these FileReaders as […]
Self-made Linked List
Problem I was tasked by my teacher with making a linked list by myself, so I could understand the concept […]
Hibernate MassIndexer using chained invocation for building a batch job
Problem I’ve a class called MassIndexer.java (on GitHub) and it uses chained invocation for building a batch job. Each method […]
Implement a queue using a linked list
Problem Implement a queue using a linked list. I’m looking for a code review, optimizations and best practices. public class […]
Determine a list contains two elements with a given sum
Problem On interview I was asked to write method with following contract: boolean checkList(List<Long> list, long sum){…} for example it […]
Simple FizzBuzz
Problem I wanted to try FizzBuzz, but to do it in the most efficient way. I think this method employs […]
Custom encryption
Problem I made a custom encryption library/class which allows to en-/decrypt Strings with a custom charset. I think you’ll get […]