Java read XML using DOM
Java DOM API is comfortable to work with not big XML documents. They can be easily loaded and modified in runtime. In this post we show how to do it.
Java create XML using DOM
Java allows to work with XML in many different ways. In this post we show how to use Java DOM API to create a document and write it as XML file.
Prime numbers – Sieve of Eratosthenes
A prime number is a natural number with only two divisors: 1 and itself.
In this post we’re going to show how to find prime numbers using Sieve of Eratosthenes and explain how it works.
Java Singleton – enum implementation
Singleton as enum is very simple to implement and very safe at the same time thanks to language guarantees for enum instantiation and serialization.
Java Singleton – static final implementation
It is the simplest and most common implementation of Singleton Design Pattern in Java. In this post we’ll show how to implement it correctly and explain why it works.
BeanCurrentlyInCreationException is thrown by Spring Framework when it meets circular reference while setting up application context. Here we show what is *it and how to fix it!
Java CyclicBarrier is very convenient synchronization tool for writing concurrent simulations. In this post we’ll show how it works and write a game simulation.
SLF4J: Class path contains multiple SLF4J bindings error occurs in many projects, especially those having multiple dependencies. Here we the reason and how to deal with it!