Posted By

udayrayala on 10/24/09


Tagged

time long


Versions (?)

Post after long time


 / Published in: Java
 

  1. private boolean buildExpressionWithRestOfTheValues(int item, StringBuffer expression, int expectedTotal, ArrayList restOfValues, String operator) {
  2. StringBuffer newExpression = new StringBuffer();
  3. boolean isPossibleWithRestOfValues = find(restOfValues, expectedTotal, newExpression);
  4. if(isPossibleWithRestOfValues){
  5. expression.append("(").append(newExpression).append(operator).append(item).append(")");
  6. return true;
  7. }
  8. return false;
  9. }

Report this snippet  

You need to login to post a comment.