728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ToBinaryString { | |
public static String toBinaryString(int value) { | |
String str = Integer.toBinaryString(value); | |
while(str.length() < 32) { | |
str = "0" + str; | |
} | |
return str; | |
} | |
} |
728x90
반응형
'Java' 카테고리의 다른 글
자바(Java) 멀티쓰레드(multi-thread) (0) | 2019.07.11 |
---|---|
데코레이터 패턴과 자바 입출력 (0) | 2019.07.10 |
J2SE 8 documentation CHM Html Help file (0) | 2018.01.11 |
[github] OpenJDK 1.8 Windows (0) | 2018.01.09 |
Windows 환경에서 Tomcat 6와 JRE/JDK 1.6 설치 문제 해결 방법 (2) | 2007.09.06 |