Integer: toBinaryString(int intValue)
/* * Output: Binary is 1011 */ public class MainClass { public static void main(String args[]) { int i = 11; System.out.println("Binary is " + Integer.toBinaryString(i)); } }