@@ -0,0 +1,480 @@
+package logic1;%0A%0Apublic class LastDigitTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09LastDigitTest test = new LastDigitTest();%0A%09%09System.out.println(test.lastDigit(23, 19, 13));%0A%09%09System.out.println(test.lastDigit(23, 19, 12));%0A%09%09System.out.println(test.lastDigit(23, 19, 3));%0A%09%7D%0A%0A%09public boolean lastDigit(int a, int b, int c) %7B%0A%09%09int rightA = a %25 10;%0A%09%09int rightB = b %25 10;%0A%09%09int rightC = c %25 10;%0A%0A%09%09return (rightA == rightB %7C%7C rightB == rightC %7C%7C rightA == rightC);%0A%09%7D%0A%7D%0A

Add LastDigitTest