fork(1) download
  1. class Example
  2. {
  3. static String[] makeMeAStringArray(int size) {
  4. return new String[size];
  5. }
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. int n = (int)(Math.random() * 100);
  9. System.out.println("n = " + n);
  10. String[] a = makeMeAStringArray(n);
  11. System.out.println("a.length = " + a.length);
  12. }
  13. }
Success #stdin #stdout 0.08s 27640KB
stdin
Standard input is empty
stdout
n = 47
a.length = 47