Created
August 31, 2015 22:31
-
-
Save jweinst1/f7cb1f4c60fb3cac4b9c to your computer and use it in GitHub Desktop.
Printing an Array in String Format in Java
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
| import java.util.Arrays; | |
| class Main { | |
| public static void main(String[] args) { | |
| int[] thing = {1, 2, 3}; | |
| System.out.println(Arrays.toString(thing)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment