Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はJavaプログラミングの初心者ですが、Java番号の処理に問題があります。0から5の整数のバイナリ形式を出力するループを備えたプログラムを作成したいと思います。
つまり、出力は次のようになります。0000 0001 0010 0011 0100助けてくれてありがとう!
使用する:
for ( int i = 0; i <= 5; i++ ) { System.out.println(Integer.toBinaryString(i)); }