In this post, we will see how to create a generic array in Java using an Object Array and Reflection Array class.
In this post, we will see how to check if a primitive or an object array contains specified value or not in Java.
In this article, we will discuss how to insert an element into a Stream in Java either at the beginning or at the end of the Stream.
In this post, we will see how to add elements of a Stream into an existing List in Java 8.
Given a list of custom objects, find maximum and minimum value of a field among custom objects using Stream in Java 8.
In this post, we will discuss various methods to iterate over a List in Java.
In this post, we will see how to convert HashSet to TreeSet in Java. The resultant TreeSet should contain all elements of the HashSet, sorted by their natural ordering.
In this post, we will discuss various methods to copy objects in Java. Copying an object is creating a copy of an existing object in order to modify or move the copied object without impacting the original object.
In this post, we will discuss about Serialization in Java with the help of Serializable Interface and Apache commons Lang’s SerializationUtils Class.
In this post, several methods are discussed to merge multiple sets in Java into a single set using plain Java, Java 8, Guava and Apache Commons. Please note that duplicate elements present in any set will be discarded during the merge operation.
In this post, we will discuss Serialization and deserialization of Java objects using Google’s GSON library.
In this post, we will discuss Serialization and deserialization of Java objects of Java objects using Jackson library by converting Java Objects into their JSON representation and then JSON to an equivalent Java object.