@@ -0,0 +1,609 @@
+%0Apublic class ArrayToString %7B%0A%09%0A%09private static final String%5B%5D gargs = new String%5B%5D %7B%221%22, %222%22%7D;%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09ArrayToString a = new ArrayToString();%0A%09%09a.print0(args);%0A%09%09a.print1();%0A%09%09a.print2();%0A%09%09a.print3();%0A%09%7D%0A%09%0A%09public void print0(String args%5B%5D) %7B%0A%09%09System.out.println(args.toString());%0A%09%7D%0A%0A%09public void print1() %7B%0A%09%09String %5B%5D args2 = new String%5B%5D %7B%22Hello%22, %22there%22%7D;%0A%09%09System.out.println(args2.toString());%0A%09%7D%0A%0A%09public void print2() %7B%0A%09%09System.out.println((new String%5B%5D %7B%22one%22,%22two%22%7D).toString());%09%09%0A%09%7D%0A%0A%09public void print3() %7B%0A%09%09System.out.println(gargs.toString());%0A%09%7D%0A%7D%0A

Test case for the array toString() detector