fork(12) download
  1. import java.util.Arrays;
  2.  
  3. public class Main {
  4. public static void main(final String[] args) {
  5. final int[] sample = new int[] { 1, 2, 3 };
  6. final String arrayStr = Arrays.toString(sample);
  7. System.out.println(arrayStr);
  8. }
  9. }
  10.  
Success #stdin #stdout 0.06s 215552KB
stdin
Standard input is empty
stdout
[1, 2, 3]