substring method in Java | Facts about substring method

preview_player
Показать описание
In Java, a Substring is a part of a String or a subset of the String. There are two variants of the substring() method.

substring(int startIndex)
substring(int startIndex, int endIndex)

String substring()
The substring() method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.

Syntax
public String substring(int begIndex);

String substring(begIndex, endIndex)
This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or up to endIndex – 1 if the second argument is given.
Syntax
public String substring(int begIndex, int endIndex);

#icsecomputerapplication
#iscboard
#javaprogramming
#knowledgecircle
#substringinjava
#stringmethodsinjava
#isc2025
#icse2025
Рекомендации по теме
Комментарии
Автор

This is definitely one of my favorite channels! Love your content.

nabil-pefd
Автор

Your videos are always so polished and professional. Fantastic job!

FAZOKI
Автор

Love this! Keep the quality content coming.

MartinaFinocchiaro
Автор

Always impressed by your videos! Keep it up.

teamvhp
Автор

The depth of your knowledge always amazes me. Love your videos!

Lilnight
Автор

Your videos always provide such valuable insights. Thank you!

ASK.