Is there a way in Java SDK 1.8 to parse a String like "0b1"
back to its integer value ?
I tried with Integer.parseInt
but it fails.
Same question with this String "0b1111_1101"
?
Maybe there's something in Eclipse.JDT to eval this as a java expression.
EDIT:
In order to give a little bit more context about what I'm trying to achieve: It's related to a modification of Sharpen (converter of Java code to C#) in order to convert a bit mask string declaration in a valid C# int declaration (this bit mask notation is still not managed by C#).