Java tutorial
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); } } }