private int[] parseSkillUpValues(String... skills){
  int[] ret=new int[]{DEFAULT_INT,DEFAULT_INT,DEFAULT_INT,DEFAULT_INT};
  try {
    for (int i=0; i <= 3 && i < skills.length; i++) {
      String skill=skills[i];
      if (skill == null || skill.isEmpty()) {
        continue;
      }
 else {
        ret[i]=Integer.parseInt(skill.trim());
      }
    }
  }
 catch (  NumberFormatException nfe) {
    nfe.printStackTrace();
  }
  return ret;
}

private int [ ] parseSkillUpValues ( String ... skills ) { int [ ] ret = new int [ ] { DEFAULT_INT , DEFAULT_INT , DEFAULT_INT , DEFAULT_INT } ; try { for ( int i = 0 ; i <= 3 && i < skills . length ; i ++ ) { String skill = skills [ i ] ; if ( skill == null || skill . isEmpty ( ) ) { continue ; } else { ret [ i ] = Integer . parseInt ( skill . trim ( ) ) ; } } } catch ( NumberFormatException nfe ) { nfe . printStackTrace ( ) ; } return ret ; }
parses the skill values and returns an array of integers .
