Created
January 28, 2020 18:17
-
-
Save r3dm1ke/205e6c763f187fd53a188e8f0f8cd391 to your computer and use it in GitHub Desktop.
StringBuilder example
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
| class Main { | |
| public static void main(String[] args) { | |
| StringBuilder sb = new StringBuilder(); | |
| String info = | |
| sb.append("Version: ") | |
| .append(VersionSignleton.getVersion()) | |
| .append(" running on: ") | |
| .append(System.getProperty("os.arch")) | |
| .toString(); | |
| System.out.println(info); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment