package edu.grinnell.csc207.username.utils;

public class Calculator
{

  /**
   * @param args
   */
  public static void
    main (String[] args)
  {
    // TODO Auto-generated method stub

  }

}

@@ -41,158 +41,1505 @@
 ls;%0A
-%0Apublic class Calculator%0A%7B%0A%0A  /**%0A   * @param args%0A   */%0A  public static void%0A    main (String%5B%5D args)%0A  %7B%0A
+import java.math.BigInteger;%0Apublic class Calculator%0A%7B%0A//Method: Calculator%0A//Inputs a string of numbers and operands seperated by spaces, and calculates the result, ignoring OOP%0A//Example: Inputed String %225 + 10 / 5%22 would return the BigInteger 3.%0A public static%0A  BigInteger eval0 (String str)%0A  %7B%0A    //Splits the string into strings for every element%0A    String%5B%5D terms = StringUtils.splitAt (str, ' ');%0A    //Makes the initial value = to the value of the # in the first new string%0A   BigInteger result = new BigInteger(terms%5B0%5D);%0A   //Counter variable%0A   int counter = 1;%0A   //The next term to consider%0A   BigInteger next;%0A   //Loops through the array of strings til it reaches one before the end%0A   while (counter %3C (terms.length -1))%0A     %7B%0A  
     
+ 
 //
- TODO Auto-generated method stub%0A%0A  %7D
+Sets next term to 1 more than counter's value%0A       next = new BigInteger(terms%5Bcounter + 1%5D);%0A       //Checks what operation is currently at counter's value and does the operation%0A       if (terms%5Bcounter%5D.equals (%22+%22))%0A        result = result.add (next);%0A       else if (terms%5Bcounter%5D.equals(%22-%22))%0A         result = result.subtract (next);       %0A       else if (terms%5Bcounter%5D.equals (%22*%22))%0A        result = result.multiply (next);%0A       else if (terms%5Bcounter%5D.equals (%22/%22))%0A       result = result.divide (next);%0A       else if (terms%5Bcounter%5D.equals (%22%5E%22))%0A       result =  result.pow (next.intValue ());%0A       //Increments counter by 2%0A       counter = counter + 2;%0A     %7D//End Calculations%0A   return result;%0A  %7D // End Calculator
 %0A%0A%7D%0A

Update Calculator.java