@@ -0,0 +1,341 @@
+public class Array6 %7B%0A  public static void main (String... args) %7B%0A    // Result: true.%0A    System.out.println(new Array6().array6(new int%5B%5D%7B1,4,6%7D,0));%0A  %7D%0A  %0A  public boolean array6(int%5B%5D nums, int index) %7B%0A    return (nums.length==0 %7C%7C (index==nums.length-1 && nums%5Bindex%5D!=6))?false:((nums%5Bindex%5D==6)?true:array6 (nums, ++index));%0A  %7D%0A%7D%0A

Create Array6.java