It’s simply too big for an int (which is 4 bytes and signed).
Use
Long.parseLong("AA0F245C", 16);
More Related Contents:
- Convert a string representation of a hex dump to a byte array using Java?
- How to convert a byte array to a hex string in Java?
- Converting A String To Hexadecimal In Java
- In Java, how do I convert a byte array to a string of hex digits while keeping leading zeros? [duplicate]
- Java: Syntax and meaning behind “[B@1ef9157”? Binary/Address?
- How to convert a color integer to a hex String in Android?
- Convert A String (like testing123) To Binary In Java [closed]
- How to convert hex string to Java string?
- Hexadecimal to Integer in Java
- Java converting int to hex and back again
- Parsing a Hexadecimal String to an Integer throws a NumberFormatException?
- How to convert a hexadecimal string to long in java?
- In Java, how do I convert a hex string to a byte[]? [duplicate]
- 2’s complement hex number to decimal in java
- How to convert hex strings to byte values in Java
- How to convert byte array to hex format in Java
- Convert hexadecimal string (hex) to a binary string
- Convert a String of Hex into ASCII in Java
- Java Convert integer to hex integer
- Verify if String is hexadecimal
- Why is Java able to store 0xff000000 as an int?
- Converting some hexadecimal string to a decimal integer
- How to convert hex string to float in Java?
- Compare two hex strings in Java?
- How to refacor a code use only loops and simple arrays?
- Java Getting values of 0 in Array
- What causes “‘void’ type not allowed here” error
- Paginating text in Android
- Java GUI frameworks. What to choose? Swing, SWT, AWT, SwingX, JGoodies, JavaFX, Apache Pivot? [closed]
- Identifying file type in Java