MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {
    public static void main(String args[]) {
        int c = 31; // initialize c 

        System.out.printf("%#o\n", c);
        System.out.printf("%#x\n", c);
    }
}