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) {

        System.out.println("Decimal 10:" + Short.decode("10"));
        System.out.println("Octal 10:" + Short.decode("010"));
        System.out.println("Hex F:" + Short.decode("0XF"));

        System.out.println("Negative Hex F:" + Short.decode("-0XF"));
    }
}