Java String valueOf() method is used to convert different types of values to an equivalent String representation. This method is a static method and there… [Read More]
Java String join() method
The join() method of String class is introduced in Java 8. This method is used to concatenate strings with specified delimiter. It is also used… [Read More]
Java String isEmpty() method
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]
- « Previous Page
- 1
- …
- 27
- 28
- 29
- 30
- 31
- …
- 65
- Next Page »