Created
April 20, 2020 17:21
-
-
Save wicky-andrian/f55cd4ac2e1cc0edd4034c3cc9bd4acd to your computer and use it in GitHub Desktop.
Contoh metode string part 4
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 = "Programing Ruby" | |
puts a | |
puts "Objek ID: #{a.object_id}" | |
b = a.reverse | |
puts b | |
puts "Objek ID: #{b.object_id}" | |
c = a.reverse! | |
puts c | |
puts "Objek ID: #{c.object_id}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment