All pastes #2110589 Raw Edit

Stuff

public text v1 · immutable
#2110589 ·published 2012-02-07 04:52 UTC
rendered paste body

import java.util.Arrays;
import java.lang.String;

class Two {
  public static void main(String[] a);
    Utilities.tostring(int[] a);
  }
}

class Utilities {
  public static String tostring(int[] a) {
    if ( a == null) return "null";
    String str = "[";
    for (int i = 0; i < a.length-1; i++) {
      str = str + a[i] + ", ";
    }
    str = str + a[a.length-1] + "]";
    return str;
  }
}