import java.io.*;
class decimal_binary
{
static void convert()throws IOException
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Please enter a number: ");
        int n=Integer.parseInt(br.readLine());
        String s="";
        for(;n>0;)
            {
                int q=n%2;
                s=Integer.toString(q)+s;
                n/=2;
            }
            System.out.println(s);
        }
    }
The article starter has earned a lot of community kudos, and such articles offer a bounty for quality replies.