How to sort a List in java In this article, explaining how to sort a list in java. We can sort list which contains Primitive data types or Wrapper Class Types by using Collections.sort(list) or list.stream().forEach(); We can’t sort list which contains object data types so that we have to use a comparator or comparable […]
Month: March 2020
Arrays Sorting
Arrays Sorting In this article, I am going to show, how to sort arrays in java. Arrays.sort(), Arrays.parallelSort() and Collections.sort(Arrays.asList()) methods are using to sort any type of arrays. String array int array short array long array double array float array char array Pre-Requisites Java 1.8 Eclipse IDE Maven String Array Example Arrays.sort(new String[] { […]
Comparator List Sorting
Comparator List Sorting In this example showing how to sort objects in the List by using a comparator. Primitive Type List, Wrapper Classes Type List can be sorted by using the Collection.sort(), but Object type List can’t be sorted. To achieve this we can use either Comparator and Comparable. Comparator A Comparator interface is […]
How to sort primitive data in the list
How to sort primitive data in the list There is a list having primitive data, then how to sort the data in the list. List – Integer Data Type ListIntegerSorting.java package com.narayanatutorial.primitive.sorting; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class ListIntegerSorting { public static void main(String args[]) { List<Integer> list = new ArrayList<Integer>(); list.add(123); […]
Spring Boot Web Example
Spring Boot Web Example In this article, I am going to showing how to create a spring boot web example project. Pre-Requisites Java 1.8 Spring Boot 2.2.5.RELEASE Eclipse IDE Spring boot project can be created in multiple ways. Eclipse Maven STS start.spring.io Here I am going to show start.spring.io using to create spring boot […]
Spring Boot Starter Example
Spring Boot Starter Example In this article, I am going to showing how to create a spring boot starter example project. Pre-Requisites Java 1.8 Spring Boot 2.2.5.RELEASE Eclipse IDE Spring boot project can be created in multiple ways. Eclipse Maven STS start.spring.io Here I am going to show start.spring.io using to create spring boot […]
OpenIDM User Self-Service
OpenIDM User Self-Service In this article, going to explaining how to enable to OpenIDM User Self Service. The user himself able to do profile activity operations such as Create an Account, forgotten username, forgotten password, change password, update profile, update security questions, update subscriptions, social login, etc.. Before this, we need to install OpenIDM. […]