private String getCodeDispt(int codeIndex){
    String str="IF Weapon = ";    
    double[][] codeArr=this.WeaponSM.weight[codeIndex];
    
    System.out.print("Print a code "+codeIndex+"\t");
    for(int i=0;i<codeArr[0].length/2;i++){
        if(codeArr[0][2*i]==1){
            str+=this.allWeapons[i]+", ";
        }
        System.out.print(codeArr[0][2*i]+" ");
    }
    
    System.out.print("\t");
    
    str+="Distance = ";
    int distMin=(int)((codeArr[1][0]<=(1-codeArr[1][1])?codeArr[1][0]:(1-codeArr[1][1]))*3000);
    int distMax=(int)((codeArr[1][0]>(1-codeArr[1][1])?codeArr[1][0]:(1-codeArr[1][1]))*3000);
    if(distMin==distMax){
        str+=distMax+", ";
    }
    else{
        str+=distMin+" ~ "+distMax+", ";
    }
    
    System.out.print("\t");
    
    str+="THEN Efficiency = ";
    int rwdMin=(int)((codeArr[2][0]<=(1-codeArr[2][1])?codeArr[2][0]:(1-codeArr[2][1]))*100);
    int rwdMax=(int)((codeArr[2][0]>(1-codeArr[2][1])?codeArr[2][0]:(1-codeArr[2][1]))*100);
    if(rwdMin==rwdMax){
        str+=rwdMax+", ";
    }
    else{
        str+=rwdMin+" ~ "+rwdMax+", ";
    }
    
    return str+"\n";
}