public class Odds {
   private double a, t, g, c;

   public double getA() {
      return a;
   }

   public double getT() {
      return t;
   }

   public double getG() {
      return g;
   }

   public double getC() {
      return c;
   }

   private void throwLessThanInitException(String var) throws InitException {
      throw new InitException(var + " cannot be less than 0\n");
   }

   public Odds(double a, double t, double g, double c) throws InitException {
      double sum = a + t + g + c;
      if(sum <= 0.999999f && sum >= 1.000001f)
         throw new InitException("A, T, G, and C must add to 1.0, they currently add to " + sum);
      if(a < 0.0f)
         throwLessThanInitException("A");
      if(t < 0.0f)
         throwLessThanInitException("T");
      if(g < 0.0f)
         throwLessThanInitException("G");
      if(c < 0.0f)
         throwLessThanInitException("C");

      this.a = a;
      this.t = t;
      this.g = g;
      this.c = c;
   }
}
@@ -256,70 +256,110 @@
 oid 
-throwLessThanInitException(String var) throws InitException %7B%0A
+assertZeroOrGreater(String var, double val) throws InitException %7B%0A      if(val %3C -0.00000000001f)%0A   
     
@@ -567,10 +567,10 @@
 99f 
-&&
+%7C%7C
  sum
@@ -692,60 +692,34 @@
     
-if(a %3C 0.0f)%0A         throwLessThanInitException
+assertZeroOrGreater
 (%22A%22
+, a
 );%0A 
@@ -727,121 +727,69 @@
     
-if(t %3C 0.0f)%0A         throwLessThanInitException(%22T%22);%0A      if(g %3C 0.0f)%0A         throwLessThanInitException
+assertZeroOrGreater(%22T%22, t);%0A      assertZeroOrGreater
 (%22G%22
+, g
 );%0A 
@@ -797,60 +797,34 @@
     
-if(c %3C 0.0f)%0A         throwLessThanInitException
+assertZeroOrGreater
 (%22C%22
+, c
 );%0A%0A

refactor odds