Skip to content

Instantly share code, notes, and snippets.

@vbmendes
Created October 31, 2019 14:25
Show Gist options
  • Save vbmendes/26749cec8fce9662f82ee0b41e2dff9b to your computer and use it in GitHub Desktop.
Save vbmendes/26749cec8fce9662f82ee0b41e2dff9b to your computer and use it in GitHub Desktop.
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