import java.io.*; class Konvert { public static void main(String args[]) throws IOException { int i = 11; String bin = Integer.toBinaryString(i); System.out.println(bin); String hexstr = Integer.toHexString(i); System.out.println(hexstr); System.in.read(); } }