|
Jun
11
|
You can tell the parseInt() method what base number system is used by the String that is being parsed.
String hex = "01001101"; int n = Integer.parseInt(hex, 2);
|
|
You can tell the parseInt() method what base number system is used by the String that is being parsed. String hex = "01001101"; int n = Integer.parseInt(hex, 2); Leave a Reply |
|
Recent Comments