How to convert hexadecimal value to integer in java?

3.78K 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
You are viewing 1 out of 1 answers, click here to view all answers.
Write your answer.