Skip to main content

Searching an character present in a string or Not ?

In this article we are searching an character in a given string. And we are going to use indexOf() method for getting the index of the character if it exhist inside the given string otherwise return -1 that means character is not present.

Comments

Popular posts from this blog

Conversions of LocalDate , LocalTime and LocalDateTime.

Getting values from joda Date & Time API in java 8