Sort an integer array using selection sort algorithm in java (with example)
What is selection sort algorithm? Selection sort is sorting technique used to sort the elements in list data structure like array. […]
What is selection sort algorithm? Selection sort is sorting technique used to sort the elements in list data structure like array. […]
Given an unsorted array in java. Sort the given input array using bubble sort algorithm. Bubble sort is a sorting
Given an array containing even and odd number in java. We would like to classify the even and odd numbers.
Given an integer array containing 0 and 1. We would like to sort input array. Zeros will be left end
Problem Statement: Given an array of integer, we would like to find out, whether array contains any duplicate elements. The
Given the user defined object or POJO having date field, we would like to serialize the POJO to JSON. During serialization, we
Given a list of user defined objects, we would like to convert list of pojo objects to JSON (and JSON to list
Given an array of user defined objects, we would like to convert array of object to JSON and JSON to array
Given Map of String & object (Map<String,Object>), we would like to convert Map to/from JSON. We will use the jackson’s objectmapper to serialize
Given user defined object in java. Serialize deserialize POJO to JSON string – jackson objectmapper i.e. convert data members of object to json string.
Given the list of objects, convert list of objects to map. We will use lambda streams to convert list objects
Initialize One, Two & Three dimensional array in java. Create & print or loop/iterate static & dynamic multi-dimensional array in java (example).
Given the user defined object or POJO, having Date field, we would like to serialize the POJO to JSON. During serialization, we would
Given an list of user defined objects, we would like to convert list of pojo objects to JSON (and JSON to list
Given an array of user defined objects , we need to convert array of POJOs to JSON String. Also, we will convert
Given the Map of String and object (Map<String,Object>), we would like to convert Map to JSON and vice versa. We will use the
1. Read file using java 8 lambda stream Given a file, read input file by line by line using lambda
Java 8 has introduced default method for interfaces, which provides the default implementation of method. Prior to java 8 interfaces
1. What is functional interface in java8? The interface having one abstract method is called functional interface. The interface can
1. Functional Interface java 8: The interface having one abstract method is called the functional interface. E.g. Comparator, Runnable interface.
Given user defined object or POJO, we would like to serialize object in java. We will use Externalizable interface, so that
Given an array of integers , find out maximum & minimum number in array using linear search. e.g. input array is { 50,
Given sorted integer array in java. Find or search element/integer in an array using binary search algorithm (with example). Binary
Binary search is a divide and conquer algorithm. Divide and conquer algorithm is process of dividing the input data-set after
RESTFul web service using spring AOP log request,response information. Create PointCut expression Before, After, Around in REST Web Service.
Aspect Oriented programming in spring The aspect oriented programming (aop) is very important module of spring framework. As the nomenclature
Custom thread pool implementation in java example without executor framework. Create thread class & thread pool using blocking queue (example)
File upload is very common scenario in today’s web application. In this post, We will discuss about RESTFul web service exposing
What is Filter in real world ? The literal meaning of Filter “a porous device for removing impurities or solid
Given a base & concrete class in java. Base class is not Serializable Concrete class implements Serializable interface and extending