Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.TimeZone;

public class Main {
    public static void main(String args[]) {
        // getting available Ids for offset
        String[] availId = TimeZone.getAvailableIDs(3600000);

        // checking available Ids for offset
        System.out.println("Available Ids for offset are: ");
        for (int i = 0; i < availId.length; i++) {
            System.out.println(availId[i]);
        }
    }
}