void () { int newLength = 1; int oldLength = staticArg.length; if (oldLength != newLength) { staticArg = Arrays.copyOf(staticArg, newLength); } for (int i = 0; i < oldLength; i++) { String s = staticArg[i]; System.out.println(s); } }