Created
October 23, 2017 12:30
-
-
Save kepocnhh/4a06a7c38a91e45bb86b3c0783606edf to your computer and use it in GitHub Desktop.
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
private boolean numberIsNegative = false; | |
public void setNumber(int number) | |
{ | |
this.number = number; | |
numberIsNegative = number < 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment