package com.aragaer.jtt;

public class JTTHour {
    public static final String Glyphs[] = { "酉", "戌", "亥", "子", "丑", "寅", "卯",
            "辰", "巳", "午", "未", "申" };

    public static final int ticks = 6;
    public static final int subs = 100;

    public boolean isNight;
    public int num; // 0 to 11, where 0 is hour of Cock and 11 is hour of Monkey
    public int strikes;
    public int fraction; // 0 to 99

    private static final int num_to_strikes(int num) {
        return 9 - ((num - 3) % ticks);
    }

    public JTTHour(int num) {
        this(num, 0);
    }

    public JTTHour(int n, int f) {
        this.setTo(n, f);
    }

    // Instead of reallocation, reuse existing object
    public void setTo(int n, int f) {
        num = n;
        isNight = n < ticks;
        strikes = num_to_strikes(n);
        fraction = f;
    }
}

@@ -88,82 +88,37 @@
 %5D = 
-%7B %22%E9%85%89%22, %22%E6%88%8C%22, %22%E4%BA%A5%22, %22%E5%AD%90%22, %22%E4%B8%91%22, %22%E5%AF%85%22, %22%E5%8D%AF%22,%0A            %22%E8%BE%B0%22, %22%E5%B7%B3%22, %22%E5%8D%88%22, %22%E6%9C%AA%22, %22%E7%94%B3%22 %7D
+%22%E9%85%89%E6%88%8C%E4%BA%A5%E5%AD%90%E4%B8%91%E5%AF%85%E5%8D%AF%E8%BE%B0%E5%B7%B3%E5%8D%88%E6%9C%AA%E7%94%B3%22.split(%22(?!%5E)%22)
 ;%0A%0A 

Replace array of glyphs with a single string and split