public int LastNum(String temp3){
int index = 0;
for(int i = 16;i>= 0;i--){
double wi = Math.pow(2,(i-1)) %11;
int ai = (int)temp3.charAt(i);
index += ai*wi;
}
index = index % 11;
index = (int)this.cc[index];
return index;
}
public String makeit(String temp2){
StringBuffer temp3 = new StringBuffer(temp2);
temp3.insert(6,"19");
temp3.insert(17,LastNum(temp3.toString()));
return temp3.toString();
}
public static void main(String[] args){
ID id = new ID();
id.temp = id.getID();
id.checkit();
}