public void addIVCombination(int attackIV,int defenseIV,int staminaIV){
  int sumIV=attackIV + defenseIV + staminaIV;
  int percentPerfect=Math.round(sumIV / 45f * 100);
  if ((percentPerfect < lowPercent) || (percentPerfect == lowPercent) && (attackIV < lowAttack)) {
    lowPercent=percentPerfect;
    lowAttack=attackIV;
    lowDefense=defenseIV;
    lowStamina=staminaIV;
  }
  if ((percentPerfect > highPercent) || (percentPerfect == highPercent) && (attackIV > highAttack)) {
    highPercent=percentPerfect;
    highAttack=attackIV;
    highDefense=defenseIV;
    highStamina=staminaIV;
  }
  iVCombinations.add(new IVCombination(attackIV,defenseIV,staminaIV));
}

public void addIVCombination ( int attackIV , int defenseIV , int staminaIV ) { int sumIV = attackIV + defenseIV + staminaIV ; int percentPerfect = Math . round ( sumIV / 45f * 100 ) ; if ( ( percentPerfect < lowPercent ) || ( percentPerfect == lowPercent ) && ( attackIV < lowAttack ) ) { lowPercent = percentPerfect ; lowAttack = attackIV ; lowDefense = defenseIV ; lowStamina = staminaIV ; } if ( ( percentPerfect > highPercent ) || ( percentPerfect == highPercent ) && ( attackIV > highAttack ) ) { highPercent = percentPerfect ; highAttack = attackIV ; highDefense = defenseIV ; highStamina = staminaIV ; } iVCombinations . add ( new IVCombination ( attackIV , defenseIV , staminaIV ) ) ; }
adds an iv possibility to the scan results .
