Java String isEmpty() method checks whether a String is empty or not. This method returns true if the given string is empty, else it returns… [Read More]
Java String intern() method
Java String intern() method is used to manage memory by reducing the number of String objects created. It ensures that all same strings share the same memory…. [Read More]
Java String format() method
Java String format() method is used for formatting the String. It works similar to printf function of C, you can format strings using format specifiers…. [Read More]
Java String contains() method
Java String contains() method checks whether a particular sequence of characters is part of a given string or not. This method returns true if a… [Read More]
Java 8 Lambda Comparator example for Sorting List of Custom Objects
We have already seen how to sort an Arraylist of custom Objects without using lambda expression. In this tutorial we will see how to sort… [Read More]
Java 8 features with examples
Java 8 got released on March 18, 2014. There are several new features that are introduced in this release. I have covered all the Java… [Read More]
Java 8 – Arrays Parallel Sort with example
Java 8 introduced a new method parallelSort() in the Arrays class of java.util package. This method is introduced to support the parallel sorting of array… [Read More]
Java 8 Optional Class
In Java 8, we have a newly introduced Optional class in java.util package. This class is introduced to avoid NullPointerException that we frequently encounters if… [Read More]
Java 8 StringJoiner with example
In java 8, a new class StringJoiner is introduced in the java.util package. Using this class we can join more than one strings with the… [Read More]
Java 8 – Stream Collectors Class with examples
Collectors is a final class that extends the Object class. In this tutorial we will see the examples of Java Stream collectors class using lambda… [Read More]
- « Previous Page
- 1
- …
- 75
- 76
- 77
- 78
- 79
- …
- 150
- Next Page »