Skip to content

Commit 78ab183

Browse files
authored
Merge pull request RunestoneInteractive#3 from conzty01/master
Fixed Typo
2 parents 073c871 + 31b77ba commit 78ab183

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:5]`` ``str.substring(2,4)`` Return substring from 2nd to 4th
679+
``str[2:4]`` ``str.substring(2,4)`` Return substring from 2nd up to but not including 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)