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