Skip to content

Commit 7b86325

Browse files
authored
Create Substring.java
1 parent 39f1caf commit 7b86325

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Substring.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//StartIndex: Inclusive
2+
//EndIndex: Exclusive
3+
4+
5+
public class Substring
6+
{
7+
public static void main(String args[])
8+
{
9+
String s="JunedKhan";
10+
System.out.println(s.substring(5));
11+
System.out.println(s.substring(0,5));
12+
}
13+
}

0 commit comments

Comments
 (0)