Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String args[]) {
        int num = 19648;

        System.out.println(num + " in binary: " + Integer.toBinaryString(num));

        System.out.println(num + " in octal: " + Integer.toOctalString(num));

        System.out.println(num + " in hexadecimal: " + Integer.toHexString(num));
    }
}