I have a String object and I need to convert to java.lang.Number.
Number num = null;
Object cellContents = ".475";
If I try to cast the cellContents to Number directly,
num = (Number) cellContents;
it throws an exception:
E[java.lang.ClassCastException: java.lang.String]: : java.lang.ClassCastException: java.lang.String
I searched but could not get a complete answer as to how I can achieve this. Please help!!!