How to convert hexadecimal value to integer in java?

2.24K viewsJava
0

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

Changed status to publish
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.

Changed status to publish
Add a Comment
You are viewing 1 out of 1 answers, click here to view all answers.
Write your answer.