package warmup1;

/*
 * Given two int values, return their sum. Unless the two values are the same,
 * then return double their sum.
 * 
 * sumDouble(1, 2) = 3
 * sumDouble(3, 2) = 5
 * sumDouble(2, 2) = 8
 */
public class SumDouble {

	public static void main(String[] args) {
		SumDouble test = new SumDouble();
		System.out.println(test.sumDouble(1, 2));
		System.out.println(test.sumDouble(3, 2));
		System.out.println(test.sumDouble(2, 2));
	}
	
	public int sumDouble(int a, int b) {
		  int sum = a + b;
		  
		  // Double it if a and b are the same
		  if (a == b) {
		      sum = sum * 2;
		  }
		  
		  return sum;
	}
}

@@ -149,17 +149,19 @@
 e(1, 2) 
-=
+--%3E
  3%0A * su
@@ -174,17 +174,19 @@
 e(3, 2) 
-=
+--%3E
  5%0A * su
@@ -199,17 +199,19 @@
 e(2, 2) 
-=
+--%3E
  8%0A */%0Ap

Update SumDouble.java