Skip to content

Commit 31b77ba

Browse files
authored
Update Java4Python.rst
1 parent b6389c8 commit 31b77ba

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 up, to but not including, 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)