Hi,
I want to get a part of String in Java.
How to substring in Java?
Thanks
HI,
Hi you can use the substring() method of Java for getting a part of string based on the index number passed to substring() function.
Here is an example:
String string = "Deepak Kumar"; String substring = string.substring(3);
Check more example at Taking Substring.
Thanks
Ads