import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.util.stream.Stream;
public static void main
(String[] args
) { new Dentaku();
}
ArrayList<JButton> buttons = new ArrayList<JButton>();
int beforeNum = 0;
JButton button7,button8,button9,buttonwaru,button4,button5,button6,buttonkake
; JButton button1,button2,button3,buttonhiku,buttonclear,button0,buttontasu,buttonequal
;
Dentaku(){
"7","8","9","÷",
"4","5","6","×",
"1","2","3","-",
"C","0","+","="
};
Stream.of(keys).forEach(x -> {
button.addActionListener(this);
buttonarea.add(button);
buttons.add(button);
});
//コンテナに追加
add(result);
add(buttonarea);
setDefaultCloseOperation
(JFrame.
EXIT_ON_CLOSE); setSize(280, 320);
setVisible(true);
setResizable(false);
result.
setFont(new Font("Arial",
Font.
PLAIN,
40)); }
@Override
//選択されたボタンごとに処理をする
try{
//数値ボタンが選択された場合
if(buttons.contains(selectedButton)){
if(dispNum == null){
dispNum
= Integer.
valueOf(selectedButton.
getText()); }
else{
dispNum
= Integer.
valueOf(String.
valueOf(dispNum
) + selectedButton.
getText()); }
result.
setText(String.
valueOf(dispNum
)); }
}
//"+"が選択された場合
if((selectedButton.getText()).equals("+")){
op = "+";
result.
setText(String.
valueOf(dispNum
)); beforeNum = dispNum;
dispNum = 0;
}
//"-"が選択された場合
else if((selectedButton.getText()).equals("-")){
op = "-";
result.
setText(String.
valueOf(dispNum
)); beforeNum = dispNum;
dispNum = 0;
}
//"×"が選択された場合
else if((selectedButton.getText()).equals("×")){
op = "×";
result.
setText(String.
valueOf(dispNum
)); beforeNum = dispNum;
dispNum = 0;
}
//"÷"が選択された場合
else if((selectedButton.getText()).equals("÷")){
op = "÷";
result.
setText(String.
valueOf(dispNum
)); beforeNum = dispNum;
dispNum = 0;
}
//"="が選択された場合
else if((selectedButton.getText()).equals("=")){
if(op.equals("+")){
dispNum = dispNum + beforeNum;
result.
setText((String.
valueOf(dispNum
))); beforeNum = dispNum;
dispNum = 0;
op = ""; //演算子クリア
}
else if(op.equals("-")){
dispNum = beforeNum - dispNum;
result.
setText((String.
valueOf(dispNum
))); beforeNum = dispNum;
dispNum = 0;
op = "";
}
else if(op.equals("×")){
dispNum = dispNum * beforeNum;
result.
setText((String.
valueOf(dispNum
))); beforeNum = dispNum;
dispNum = 0;
op = "";
}
else if(op.equals("÷")){
dispNum = beforeNum / dispNum;
result.
setText((String.
valueOf(dispNum
))); beforeNum = dispNum;
dispNum = 0;
op = "";
}
}
if((selectedButton.getText()).equals("C")){
dispNum = 0;
beforeNum = 0;
op = "";
result.setText("");
}
}
}
}
aW1wb3J0wqBqYXZhLmF3dC4qOwppbXBvcnTCoGphdmF4LnN3aW5nLio7CmltcG9ydMKgamF2YS5hd3QuZXZlbnQuKjsKaW1wb3J0wqBqYXZhLnV0aWwuKjsKaW1wb3J0wqBqYXZhLnV0aWwuc3RyZWFtLlN0cmVhbTsKCnB1YmxpY8KgY2xhc3PCoERlbnRha3XCoGV4dGVuZHPCoEpGcmFtZcKgaW1wbGVtZW50c8KgQWN0aW9uTGlzdGVuZXJ7CsKgwqDCoMKgcHVibGljwqBzdGF0aWPCoHZvaWTCoG1haW4oU3RyaW5nW13CoGFyZ3MpwqB7CsKgwqDCoMKgwqDCoMKgwqBuZXfCoERlbnRha3UoKTsKwqDCoMKgwqB9CgrCoMKgwqDCoEpUZXh0RmllbGTCoHJlc3VsdMKgPcKgbmV3wqBKVGV4dEZpZWxkKCIiKTsKCsKgwqDCoMKgSlBhbmVswqBidXR0b25hcmVhwqA9wqBuZXfCoEpQYW5lbChuZXfCoEdyaWRMYXlvdXQoNCw0KSk7CsKgwqDCoMKgQXJyYXlMaXN0PEpCdXR0b24+wqBidXR0b25zwqA9wqBuZXfCoEFycmF5TGlzdDxKQnV0dG9uPigpOwrCoMKgwqDCoEpCdXR0b27CoHRhc3VCdXR0b27CoD3CoG5ld8KgSkJ1dHRvbigiKyIpOwrCoMKgwqDCoEpCdXR0b27CoGhpa3VCdXR0b27CoD3CoG5ld8KgSkJ1dHRvbigiLSIpO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h0KChTdHJpbmcudmFsdWVPZihkaXNwTnVtKSkpOwrCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgYmVmb3JlTnVtwqA9wqBkaXNwTnVtOwrCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgZGlzcE51bcKgPcKgMDsKwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoG9wwqA9wqAiIjsKwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqB9CsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoH0KwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgaWYoKHNlbGVjdGVkQnV0dG9uLmdldFRleHQoKSkuZXF1YWxzKCJDIikpewrCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoGRpc3BOdW3CoD3CoDA7CsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgYmVmb3JlTnVtwqA9wqAwOwrCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoG9wwqA9wqAiIjsKwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqByZXN1bHQuc2V0VGV4dCgiIik7CsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoH0KwqDCoMKgwqDCoMKgwqDCoH0KwqDCoMKgwqB9Cn0K
Main.java:1: error: illegal character: '\u00a0'
import?java.awt.*;
^
Main.java:2: error: illegal character: '\u00a0'
import?javax.swing.*;
^
Main.java:3: error: illegal character: '\u00a0'
import?java.awt.event.*;
^
Main.java:4: error: illegal character: '\u00a0'
import?java.util.*;
^
Main.java:5: error: illegal character: '\u00a0'
import?java.util.stream.Stream;
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: illegal character: '\u00a0'
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:7: error: class, interface, or enum expected
public?class?Dentaku?extends?JFrame?implements?ActionListener{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: class, interface, or enum expected
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:8: error: illegal character: '\u00a0'
????public?static?void?main(String[]?args)?{
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:9: error: illegal character: '\u00a0'
????????new?Dentaku();
^
Main.java:10: error: illegal character: '\u00a0'
????}
^
Main.java:10: error: illegal character: '\u00a0'
????}
^
Main.java:10: error: illegal character: '\u00a0'
????}
^
Main.java:10: error: illegal character: '\u00a0'
????}
^
Main.java:10: error: class, interface, or enum expected
????}
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:12: error: illegal character: '\u00a0'
????JTextField?result?=?new?JTextField("");
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:14: error: illegal character: '\u00a0'
????JPanel?buttonarea?=?new?JPanel(new?GridLayout(4,4));
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: class, interface, or enum expected
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:15: error: illegal character: '\u00a0'
????ArrayList<JButton>?buttons?=?new?ArrayList<JButton>();
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:16: error: illegal character: '\u00a0'
????JButton?tasuButton?=?new?JButton("+");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:17: error: illegal character: '\u00a0'
????JButton?hikuButton?=?new?JButton("-");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:18: error: illegal character: '\u00a0'
????JButton?kakeButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:19: error: illegal character: '\u00a0'
????JButton?wariButton?=?new?JButton("?");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
Main.java:20: error: illegal character: '\u00a0'
????JButton?equalButton?=?new?JButton("=");
^
100 errors