Example
FC12 should be converted to a number say X
so that same X can again be convertible to FC12
Not Working
public int toInt(String s) {
char ch[] = s.toCharArray();
int value=0;
int mult = 1;
for (int i=0; i<ch.length; i++){
value = value + ch[i] * mult;
mult *= 100;
}
return value;
}
public String toStr(int value) {
String s = "";
while (value > 0) {
s += (char)(value % 100);
value = value / 100;
}
return s;
}