Created
October 31, 2019 14:25
-
-
Save vbmendes/26749cec8fce9662f82ee0b41e2dff9b to your computer and use it in GitHub Desktop.
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
if (this.getStringA() != null && this.getStringB() != null) { | |
return this.getStringA() + " - " + this.getStringB(); | |
} else if (this.getStringA() != null) { | |
return this.getStringA(); | |
} else if (this.getStringB() != null) { | |
return this.getStringB(); | |
} else { | |
return ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment