@@ -0,0 +1,1236 @@
+package miwax.java_conf.gr.jp.frugalitycalc.model;%0A%0Aimport android.widget.TextView;%0A%0Apublic class Display %7B%0A    private TextView text;%0A%0A    public Display(TextView text) %7B%0A        this.text = text;%0A    %7D%0A%0A    // %E6%96%87%E5%AD%97%E5%88%97%E3%82%BB%E3%83%83%E3%83%88%0A    public void setString(String str) %7B%0A        text.setText(str);%0A    %7D%0A%0A    // %E6%96%87%E5%AD%97%E5%88%97%E3%82%B2%E3%83%83%E3%83%88%0A    public String getString() %7B%0A        return text.getText().toString();%0A    %7D%0A%0A    // %E5%85%A8%E6%B6%88%E5%8E%BB%0A    public void clear() %7B%0A        setString(CalcNumber.ZERO.getString());%0A    %7D%0A%0A    // %E6%9C%AB%E5%B0%BE%E4%B8%80%E6%96%87%E5%AD%97%E5%89%8A%E9%99%A4%0A    public void clearEnd() %7B%0A        String str = getString();%0A        if (str.length() %3E 1) %7B%0A            str = str.substring(0, str.length()-1);%0A        %7D else %7B%0A            str = CalcNumber.ZERO.getString();%0A        %7D%0A        setString(str);%0A    %7D%0A%0A    // %E6%9C%AB%E5%B0%BE%E4%B8%80%E6%96%87%E5%AD%97%E8%BF%BD%E5%8A%A0%0A    public void addNumber(CalcNumber num) %7B%0A        String nowStr = getString();%0A%0A        // %E3%81%99%E3%81%A7%E3%81%AB%E3%83%89%E3%83%83%E3%83%88%E3%81%8C%E8%A1%A8%E7%A4%BA%E6%B8%88%E3%81%BF%E3%81%8B%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%0A        if (num == CalcNumber.DOT && nowStr.contains(CalcNumber.DOT.getString())) %7B%0A            return;%0A        %7D%0A%0A        // %E8%A1%A8%E7%A4%BA%E3%81%8C%220%22%E3%81%8B%E3%81%A4%E5%85%A5%E5%8A%9B%E3%81%8C%E6%95%B0%E5%AD%97%E3%81%A7%E3%81%82%E3%82%8C%E3%81%B0%E3%80%81%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%AF%E7%84%A1%E3%81%8F%E7%BD%AE%E3%81%8D%E6%8F%9B%E3%81%88%E3%82%8B%0A        if (num != CalcNumber.DOT && nowStr.equals(CalcNumber.ZERO.getString())) %7B%0A            setString(num.getString());%0A            return;%0A        %7D%0A%0A        setString(nowStr + num.getString());%0A    %7D%0A%0A%7D%0A

Implement Display