diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..e1f830b
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..5aebfd1
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/pan.iml b/.idea/pan.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/pan.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chen123/chen123.iml b/chen123/chen123.iml
new file mode 100644
index 0000000..37cc804
--- /dev/null
+++ b/chen123/chen123.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chen123/src/Main.java b/chen123/src/Main.java
new file mode 100644
index 0000000..3e59c38
--- /dev/null
+++ b/chen123/src/Main.java
@@ -0,0 +1,5 @@
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
\ No newline at end of file
diff --git a/chen123/src/jisuan.java b/chen123/src/jisuan.java
new file mode 100644
index 0000000..1107087
--- /dev/null
+++ b/chen123/src/jisuan.java
@@ -0,0 +1,211 @@
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class jisuan{
+ public static void main(String[] args) {
+ JS win=new JS();
+ }
+}
+class JS extends JFrame implements ActionListener{
+ private StringBuilder sBuilder = new StringBuilder();
+ JTextArea text=new JTextArea();
+ double a,b;
+ Double sum;
+ int i;
+ public JS()
+ {
+ setBounds(100,100,400,400);
+ setTitle("计算器");
+ this.setLayout(new BorderLayout());
+ JPanel p1=new JPanel();
+ JPanel p2=new JPanel();
+ text.setPreferredSize(new Dimension (370,60));
+ p2.setLayout(new FlowLayout());
+ p1.add(text);
+ this.add(p1,BorderLayout.NORTH);
+
+
+ p2.setLayout(new GridLayout(5,4));
+ JButton button[]=new JButton[20];
+ button[0]=new JButton("C");
+ button[1]=new JButton(" ");
+ button[2]=new JButton("%");
+ button[3]=new JButton("÷");
+ button[4]=new JButton("7");
+ button[5]=new JButton("8");
+ button[6]=new JButton("9");
+ button[7]=new JButton("x");
+ button[8]=new JButton("4");
+ button[9]=new JButton("5");
+ button[10]=new JButton("6");
+ button[11]=new JButton("—");
+ button[12]=new JButton("1");
+ button[13]=new JButton("2");
+ button[14]=new JButton("3");
+ button[15]=new JButton("+");
+ button[16]=new JButton("");
+ button[17]=new JButton("0");
+ button[18]=new JButton(".");
+ button[19]=new JButton("=");
+
+ for(int i=0;i