Skip to content

Instantly share code, notes, and snippets.

@jweinst1
Created August 31, 2015 22:31
Show Gist options
  • Select an option

  • Save jweinst1/f7cb1f4c60fb3cac4b9c to your computer and use it in GitHub Desktop.

Select an option

Save jweinst1/f7cb1f4c60fb3cac4b9c to your computer and use it in GitHub Desktop.
Printing an Array in String Format in Java
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