●整数を2進の文字列に変換

--------------------------------------------------
public class toBinaryStringDemo {
public static void main(String args[]){

for(int i=1; i < 16; i++){
String s = Integer.toBinaryString(i);
System.out.println(i + " " + s );
}
}
}
--------------------------------------------------