Logo

Programming-Idioms

History of Idiom 142 > diff from v22 to v23

Edit summary for version 23 by AJavaDeveloper:
New Java implementation by user [AJavaDeveloper]

Version 22

2019-09-26, 16:38:25

Version 23

2019-09-26, 17:03:24

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Extra Keywords
hex hexa radix
Extra Keywords
hex hexa radix
Code
String s = Integer.toHexString(x);