@@ -0,0 +1,1015 @@
+package array2;%0A%0Aimport java.util.Arrays;%0A%0A/*%0A * Given a number n, create and return a new string array of length n,%0A * containing the strings %220%22, %221%22 %222%22 .. through n-1. N may be 0, in which case%0A * just return a length 0 array. Note: String.valueOf(xxx) will make the String%0A * form of most types. The syntax to make a new string array is: new%0A * String%5Bdesired_length%5D (See also: FizzBuzz Code)%0A * %0A * fizzArray2(4) --%3E %7B%220%22, %221%22, %222%22, %223%22%7D%0A * fizzArray2(10) --%3E %7B%220%22, %221%22, %222%22, %223%22, %224%22, %225%22, %226%22, %227%22, %228%22, %229%22%7D%0A * fizzArray2(2) --%3E %7B%220%22, %221%22%7D%0A */%0Apublic class FizzArray2Test %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09FizzArrayTest test = new FizzArrayTest();%0A%09%09System.out.println(Arrays.toString(test.fizzArray(4)));%0A%09%09System.out.println(Arrays.toString(test.fizzArray(10)));%0A%09%09System.out.println(Arrays.toString(test.fizzArray(2)));%0A%09%7D%0A%0A%09public String%5B%5D fizzArray2(int n) %7B%0A%09%09String%5B%5D array = new String%5Bn%5D;%0A%0A%09%09for (int i = 0; i %3C n; i++) %7B%0A%09%09%09array%5Bi%5D = String.valueOf(i);%0A%09%09%7D%0A%09%09return array;%0A%09%7D%0A%7D%0A

Create FizzArray2Test.java