Created
April 22, 2020 12:25
-
-
Save wicky-andrian/c25835224efb9caf4db30ce246040e29 to your computer and use it in GitHub Desktop.
Contoh metode string part 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "Ruby" | |
puts "metode index()" | |
puts a.index('y') | |
puts "metode rindex()" | |
puts a.rindex('y') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment