Core java Archive

Validate password in java

In this post, we will see how to validate a password in java. Here are rules for password: Must have at least one numeric character Must have at least one lowercase character Must have at …

Java regex for currency symbols

In this post, we will see about regex to find currency symbols in a text. You can use below regex to find currency symbols in any text. \\p{Sc} Each unicharacter belongs to certain category and …

Java Stream List to Map

In this post, we will see how to convert List to Map using Stream in java 8. Collectors’s can be used with Stream to convert List to Map in java. Consider a class Named …

Java Stream sorted example

In this post, we will see how to sort a list with method. Java 8 has introduced method to sort list of elements conveniently. It helps us to write short and concise functional …

Java 8 Method reference

Java 8 has introduced a lot of new features such as lambda expressions, stream, Method references etc. In this post, we will see what are Method references and how can we use it. I will …