Programming-Idioms

History of Idiom 76 > diff from v35 to v36

Edit summary for version 36 :
New Java implementation by user [lck]

Version 35

2015-12-30, 13:58:32

Version 36

2016-01-01, 00:21:08

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Idiom #76 Binary digits from an integer

Create the string s of integer x written in base 2.

E.g. 13 -> "1101"

Code
String s = Integer.toBinaryString(x)