Bharat Savani·Jul 19, 20214 different ways to Sort Array By Parity — Moving Even Numbers to Left and Odd Numbers to RightLeetCode 905: Given an array nums of non-negative integers, return an array comprising all the even elements of nums, followed by all the…
Bharat Savani·Sep 6, 2020Complete Guide to java.util.Objects class including Java 9 enhancements with more than 50 examples.1. Introduction
Bharat Savani·Aug 4, 2020Dependency Injection in Spring3 different types of dependency injection strategy provided in Spring. Setter, Field and Constructor Injection. Learn them with examples.
Bharat Savani·Aug 3, 2020Replacing nested if conditions in Object Oriented WayIf we see nested if conditions in code, that code is begging to be refactored. Don’t let that opportunity go away.
Bharat Savani·Jul 30, 2020Map Interface Enhancements : What’s new in Java 8 to Java 10Map interface had addition of 25 new methods in Java 8, 9 and 10 release. Learn about all this methods with tons of examples.
Bharat Savani·Jul 14, 2020Injecting Collections in SpringLearn how to inject Collections using Spring. We will inject List<E>, Set<E> and Map<K, V> using Constructor, Setter and Field Injection.
Bharat Savani·Jul 8, 2020Injecting HTTP Headers in Spring Rest ControllerInject the request headers in Spring Framework. We will use @RequestHeader annotation provided in Spring.
Bharat Savani·Jul 6, 2020Map.Entry Interface Enhancements : What’s new in Java 8 to Java 10Learn about Map.Entry interface’s methods by comparingByKey(with and without Comparator) and comparingByValue(with and without Comparator).