Created
September 2, 2017 14:49
-
-
Save memish/0a60514a7df4d83a3201e303e9be383c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SubstringExample{ | |
public static void main(String args[]){ | |
String s1="javatpoint"; | |
System.out.println(s1.substring(2,4));//returns va | |
System.out.println(s1.substring(2));//returns vatpoint | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment