Created
November 29, 2011 22:31
-
-
Save rmw/1406893 to your computer and use it in GitHub Desktop.
What is the primary difference between these two pieces of code?
This file contains 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
// Java | |
public boolean isEmpty(String s) { | |
return s.length() == 0; | |
} | |
# ruby | |
def empty?(s) | |
return s.size == 0 | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment