Methods of the String Class (Part 2)

This is the continuation of the previous part of Methods of the String Class (Part 1) . This the part 2 of that tutorial. Hope you enjoyed it and let's get started. The substring method returns new strings that are sub strings (parts) of the referred string (original String) object. this method requires two parameters. originalString.substring(startingIndex, endIndex) the... Continue Reading →

Methods of the String Class (Part 1)

There are some functions that are related to the String class so that we can easily work with the strings that we make in the code. The indexOf Method Returns the index of the character in the string in the form of an integer. There are 4 types of indexOf methods. indexOf ( char ) only... Continue Reading →

Blog at WordPress.com.

Up ↑