Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.*;

public class Main {

    public static void main(String[] args) {

        GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();

        // get the time zone and print it
        System.out.println("Time Zone:" + cal.getTimeZone().getDisplayName());

    }
}