The toHexString() method converts an integer value into a hexadecimal string. The Integer class defines this method with the following signature:
The given signature of the method suggests that it takes an int argument and returns a String object. The String object returned by the method is a string that represents an unsigned integer in base 16.
The toHexString() method works as follows:
- If the argument to the method is a positive value, then the method converts this value to a string of ASCII digits in hexadecimal (base 16) with no extra leading zeros.
- If the argument to the method is a negative value, the method first adds the value 232 to the value. The value so obtained is then converted to a string of ASCII digits in hexadecimal (i.e., base 16) format with no extra leading zeros.
- Click here to get free master-ciw-enterprise-developer Master CIW Enterprise Developer exam practice questions.
- Best exam simulation SUN scbcd download free trial.
- Get certified in first attempt download scdjws - SCDJWS simulation.
- Download practice question and study guide for scjp for exam.
- Download free practice test for SUN SCJP 5/6 exam.
- Get certified in first attempt download scmad - SCMAD simulation.
- Click here to get free scwcd SCWCD exam practice questions.
- Download free practice test for SUN SCJP 2 exam.
- Download free practice test for CX310-055 Java 5.0 exam.
- Pass SCJP 5.0 Java Upgrade in first attampt.
- Pass SUN CX310-065 - SCJP 6.0
- Pass SUN CX310-066 - SCJP Upgrade
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
