public class Order {
    
    private final int pulse1;
    private final int pulse2;
    private final int triangle;
    private final int noise;
    
    public Order(int pulse1, int pulse2, int triangle, int noise) {
        this.pulse1   = pulse1;
        this.pulse2   = pulse2;
        this.triangle = triangle;
        this.noise    = noise;
    }
    
    public int getPulse1() {
        return pulse1;
    }
    
    public int getPulse2() {
        return pulse2;
    }
    
    public int getTriangle() {
        return triangle;
    }
    
    public int getNoise() {
        return noise;
    }
}

@@ -602,10 +602,470 @@
 ;%0A    %7D%0A
+    %0A    public static Order orderBuilder(String line) %7B%0A        // ORDER 0A : 01 05 03 02 02%0A        // 0     1  2 3  4  5  6  7%0A        String%5B%5D split = line.split(%22%5C%5Cs+%22);%0A        int pulse1   = Integer.parseInt(split%5B3%5D, 16);%0A        int pulse2   = Integer.parseInt(split%5B4%5D, 16);%0A        int triangle = Integer.parseInt(split%5B5%5D, 16);%0A        int noise    = Integer.parseInt(split%5B6%5D, 16);%0A        return new Order(pulse1, pulse2, triangle, noise);%0A    %7D%0A
 %7D%0A

Order parser