@@ -0,0 +1,821 @@
+package codingbat.logic2;%0A%0A/*%0A * Given 3 int values, a b c, return their sum.%0A * However, if one of the values is the same as another of the values,%0A * it does not count towards the sum.%0A * loneSum(1, 2, 3) = 6%0A * loneSum(3, 2, 3) = 2%0A * loneSum(3, 3, 3) = 0%0A */%0A%0Apublic class LoneSumTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    LoneSumTest test = new LoneSumTest();%0A%0A    System.out.println(%22%3E%22 + test.loneSum(1, 2, 3) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.loneSum(3, 2, 3) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.loneSum(3, 3, 3) + %22%3C%22);%0A  %7D%0A%0A  public int loneSum(int a, int b, int c) %7B%0A%0A    if (a == b && b == c) %7B%0A      return 0;%0A    %7D%0A    else if (a == b) %7B%0A      return c;%0A    %7D%0A    else if (a == c) %7B%0A      return b;%0A    %7D%0A    else if ( b == c) %7B%0A      return a;%0A    %7D%0A    %0A    return a+b+c;%0A  %7D%0A%0A%7D%0A

add LoneSum task