MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
     
Binary is 1011
    
    
 */

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