@@ -0,0 +1,533 @@
+package logic1;%0A%0Apublic class WithoutDoublesTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09WithoutDoublesTest test = new WithoutDoublesTest();%0A%09%09System.out.println(test.withoutDoubles(2, 3, true));%0A%09%09System.out.println(test.withoutDoubles(3, 3, true));%0A%09%09System.out.println(test.withoutDoubles(3, 3, false));%0A%09%7D%0A%0A%09public int withoutDoubles(int die1, int die2, boolean noDoubles) %7B%0A%09%09if (noDoubles) %7B%0A%09%09%09if (die1 == die2) %7B%0A%09%09%09%09if (die2 == 6) %7B%0A%09%09%09%09%09die2 = 1;%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09die2++;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return die1 + die2;%0A%09%7D%0A%7D%0A

Add WithoutDoublesTest