Last active
September 17, 2018 18:39
-
-
Save hlindberg/d8a1c7f2288edba18a7713533fda8f2d to your computer and use it in GitHub Desktop.
Java Snippets
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
StringJoiner joiner = new StringJoiner(","); | |
for (Item item : list) { | |
joiner.add(item.toString()); | |
} | |
return joiner.toString(); |
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
public static void main(String[] args) { | |
// Prints "Hello, World" to the terminal window. | |
System.out.println("Hello, World"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment