In Java 8, Stream API’s max method returns the maximum element of this stream according to the provided Comparator and […] Continue reading »
In this short tutorial, we’ll find all the capital letters in the given String using Java. Character.isUpperCase(char ch) returns true […] Continue reading »
In Java 8, we can use ZoneId.getAvailableZoneIds() to get all unique zone id and LocalDateTime to get UTC offset of […] Continue reading »
In Java 8, we can use Period.between(startDate, endDate) method to find out the difference between two LocalDate instances. Period is […] Continue reading »
In Java 8, ZoneId.getAvailableZoneIds() method return all available unique ZoneId and we can loop it for display. static Set<String> getAvailableZoneIds(); […] Continue reading »
In Java 8, we can use LocalDateTime.now(ZoneId.of(String zoneId)) to get current LocalDateTime instance of the zoneId and Duration to calculate […] Continue reading »
In this short article, we’ll learn how to calculate the difference between two dates in Java 8. We can use […] Continue reading »
In this article, we will show you a few ways to create/generate a unique token in Java. Creating a unique […] Continue reading »
In this short article, we’ll look at how to generate One Time Password (OTP) in Java 8. In Java 8, […] Continue reading »
In this guide, we’ll explore the Java 8 Base64 utility class for obtaining encoders and decoders for the Base64 encoding […] Continue reading »
A Map can also be sorted with stream.sorted() method in Java 8. We can sort the Map based on its […] Continue reading »