How to convert hexadecimal value to integer in java?

3.77K viewsJava
0

How to convert hexadecimal value to integer in java-please guide us.

Manohar Changed status to publish July 7, 2019
Add a Comment
0
public String convertHexadecimalToInteger(String hexadecimalVal) {
		int integerVal = Integer.parseInt(hexadecimalVal, 16); //Here converting Hexadecimal to Integer
		String stringConvertedValue = new Integer(integerVal).toString(); // Here converting Integer to String
		return stringConvertedValue;

}

Try above snippet and let us know.

Manohar Changed status to publish July 7, 2019
Add a Comment
Write your answer.