String equals and equalsIgnoreCase

String equals and equalsIgnoreCase are used for comparing 2 Strings in java.Both these methods works exactly similar except for equalsIgnoreCase compares String ignoring case consideration. example

Read More →

How to split String in java

String API provides 2 methods to split String in java.

Both these methods return a array of String that has been split. In this post we will see some examples using

Read More →

How to convert String to long

In Java we have multiple ways to convert String to long. We will see a few of those ways in this post. 1. Convert String to long using Long.parseLong()

If the Strin

Read More →

How to convert String to Date

In this post we will see how to convert String to date in java. For this we will use SimpleDateFormat API to convert string to date. We need to pass in the dateformat in which we want to convert St

Read More →

How to convert String to boolean

In Java we have multiple ways to convert String to boolean. We will see a few of those ways in this post. 1. Convert String to boolean using Boolean.parseBoolean() For Any value of string other tha

Read More →

How to convert String to int

In Java we have multiple ways to convert String to int. We will see a few of those ways in this post. 1. Convert String to int using Integer.parseInt()

If the Strin

Read More →

Spring MVC Password tag Example

Spring MVC password tag is used to show a password field on the UI

The HTML code that gets generated is You can get more informatio

Read More →

How to Create Dir in java

We can create dir in java either using File.mkdir() or File.mkdirs(). Example: Create Dir in java using File.mkdir()

File

Read More →