Skip to content

Commit 35d8a74

Browse files
authored
Updated description of typo
1 parent 1933df2 commit 35d8a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎source/Java4Python.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ examples shown in the table we will use a string variable called “str”
676676
Python Java Description
677677
========================== ======================== =============================================================
678678
``str[3]`` ``str.charAt(3)`` Return character in 3rd position
679-
``str[2:4]`` ``str.substring(2,4)`` Return substring from 2nd to 4th
679+
``str[2:4]`` ``str.substring(2,4)`` Return substring from 2nd up to 4th
680680
``len(str)`` ``str.length()`` Return the length of the string
681681
``str.find('x')`` ``str.indexOf('x')`` Find the first occurrence of x
682682
``str.split()`` ``str.split('\s')`` Split the string on whitespace into a list/array of strings

0 commit comments

Comments
 (0)