Combining Different Types of Collections in Java 1. Introduction In this quick tutorial, we’ll explore different ways of combining collections in Java. We’ll explore various approaches using Java and external frameworks like Guava, Apache, etc. For the introduction to Collections, have a look at this series here. 2. External Libraries… Continue Reading java-combine-collections

Gson Serialization Cookbook In this article we’re going to look at the most common scenarios of serialization using the Gson library. Let’s start by introducing a simple entity that we’re going to use throughout the following examples: public class SourceClass { private int intValue; private String stringValue; // standard getters… Continue Reading gson-serialization-guide

Java Compiler Error: “class, interface, or enum expected” Java 1. Overview In this quick tutorial, we’re going to talk about the Java compiler error “class, interface, or enum expected”. This error is mainly faced by developers who are new to the java world. Let’s walk through a few examples of this… Continue Reading java-class-interface-enum-expected