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) {
        String[] ids = TimeZone.getAvailableIDs();

        for (String id : ids) {
            int slash = id.indexOf('/');
            String stripped = id.substring(slash + 1).replace("_", " ");
            System.out.println(stripped);
        }
    }
}