@@ -0,0 +1,790 @@
+package array2;%0A%0Aimport java.util.Arrays;%0A%0Apublic class FizzBuzzTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09FizzBuzzTest test = new FizzBuzzTest();%0A%09%09System.out.println(Arrays.toString(test.fizzBuzz(1, 6)));%0A%09%09System.out.println(Arrays.toString(test.fizzBuzz(1, 8)));%0A%09%09System.out.println(Arrays.toString(test.fizzBuzz(1, 11)));%0A%09%7D%0A%0A%09public String%5B%5D fizzBuzz(int start, int end) %7B%0A%09%09int length = end - start;%0A%0A%09%09String%5B%5D array = new String%5Blength%5D;%0A%0A%09%09for (int i = 0; i %3C array.length; i++) %7B%0A%09%09%09if ((start + i) %25 3 == 0 && (start + i) %25 5 == 0) %7B%0A%09%09%09%09array%5Bi%5D = %22FizzBuzz%22;%0A%09%09%09%7D else if ((start + i) %25 3 == 0) %7B%0A%09%09%09%09array%5Bi%5D = %22Fizz%22;%0A%09%09%09%7D else if ((start + i) %25 5 == 0) %7B%0A%09%09%09%09array%5Bi%5D = %22Buzz%22;%0A%09%09%09%7D else %7B%0A%09%09%09%09array%5Bi%5D = String.valueOf(start + i);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return array;%0A%09%7D%0A%7D%0A

Add FizzBuzzTest