Skip to content

Commit aed29fe

Browse files
authored
Fixing substring bug
1 parent 9967374 commit aed29fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/in28minutes/java/string/StringExamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void main(String[] args) {
5555

5656
// All characters from index paramInt
5757
// String substring(int paramInt)
58-
System.out.println("abcdefghij".substring(3)); // cdefghij
58+
System.out.println("abcdefghij".substring(3)); // defghij
5959
// 0123456789
6060

6161
// All characters from index 3 to 6

0 commit comments

Comments
 (0)