Skip to content

Instantly share code, notes, and snippets.

@vbmendes
Last active April 15, 2021 19:00
Show Gist options
  • Save vbmendes/aa93feeb413f01a261d3e7af891fa2f4 to your computer and use it in GitHub Desktop.
Save vbmendes/aa93feeb413f01a261d3e7af891fa2f4 to your computer and use it in GitHub Desktop.
Joining strings in Java 8 with null safety
return this.getStringA() + " - " + this.getStringB();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment