Good friends, I need to pass a string string to float in JAVA . The problem is that in the end, each string ends with units (volt,%, cm, m .. etc)
example: Convert the String "0.22V" to float : 0.22
Thank you very much!
PS: All the Strings I want to transform are on the left and their corresponding units on the right. It is not feasible to split each one, since it would be inefficient since the +30 data is in a collection in which I must iterate.
I would greatly appreciate your help, thank you.