conversion decimal to 2^12 binary form
<p>anyone can help me how to convert a decimal number into 2^12 binary form...here the code that i used for conversion. bt it's not 2^12 binary for. pls do anyone help me to solve this prob.</p>

<pre><code>import java.io.*;
import java.lang.*;


public class convert {
  public static void main(String[] args) throws IOException{
    BufferedReader bf= new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Enter any number:");
    String sn = bf.readLine();
    int i = Integer.parseInt(sn);
    String s = Integer.toBinaryString(i);
    System.out.println("Binary number is:" + s);
  }
}
</code></pre>
