瀏覽代碼

finished commit

Joshua Chung 8 年之前
父節點
當前提交
e36d8e5ee0
共有 7 個檔案被更改,包括 33 行新增6 行删除
  1. 二進制
      Operations.class
  2. 14
    0
      Operations.ctxt
  3. 4
    0
      Operations.java
  4. 二進制
      OperationsTest.class
  5. 9
    0
      OperationsTest.ctxt
  6. 1
    1
      README.TXT
  7. 5
    5
      package.bluej

二進制
Operations.class 查看文件


+ 14
- 0
Operations.ctxt 查看文件

1
+#BlueJ class context
2
+comment0.target=Operations
3
+comment1.params=x\ y
4
+comment1.target=int\ add(int,\ int)
5
+comment1.text=\n\ The\ addition\ function.\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ the\ sum\ of\ x\ and\ y\n
6
+comment2.params=x\ y
7
+comment2.target=int\ subtract(int,\ int)
8
+comment2.text=\n\ The\ subtraction\ function\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ y\ taken\ from\ x\n
9
+comment3.params=x\ y
10
+comment3.target=int\ multiply(int,\ int)
11
+comment3.text=\n\ The\ multiplication\ function\n\ @param\ x\ The\ first\ operand\n\ @param\ y\ The\ second\ operand\n\ @return\ x\ times\ y\n
12
+comment4.params=x\ y
13
+comment4.target=int\ divide(int,\ int)
14
+numComments=5

+ 4
- 0
Operations.java 查看文件

30
     public static int multiply(int x, int y) {
30
     public static int multiply(int x, int y) {
31
         return x * y;
31
         return x * y;
32
     }
32
     }
33
+    
34
+    public static int divide(int x, int y) {
35
+        return x / y;
36
+    }
33
 }
37
 }

二進制
OperationsTest.class 查看文件


+ 9
- 0
OperationsTest.ctxt 查看文件

1
+#BlueJ class context
2
+comment0.target=OperationsTest
3
+comment1.params=
4
+comment1.target=void\ testAdd()
5
+comment2.params=
6
+comment2.target=void\ testSubtract()
7
+comment3.params=
8
+comment3.target=void\ testMultiply()
9
+numComments=4

+ 1
- 1
README.TXT 查看文件

4
 all he/she needs to know. The comments should usually include at least:
4
 all he/she needs to know. The comments should usually include at least:
5
 ------------------------------------------------------------------------
5
 ------------------------------------------------------------------------
6
 
6
 
7
-PROJECT TITLE:
7
+PROJECT TITLE: Calcul8r
8
 PURPOSE OF PROJECT:
8
 PURPOSE OF PROJECT:
9
 VERSION or DATE:
9
 VERSION or DATE:
10
 HOW TO START THIS PROJECT:
10
 HOW TO START THIS PROJECT:

+ 5
- 5
package.bluej 查看文件

4
 dependency1.type=UsesDependency
4
 dependency1.type=UsesDependency
5
 editor.fx.0.height=722
5
 editor.fx.0.height=722
6
 editor.fx.0.width=800
6
 editor.fx.0.width=800
7
-editor.fx.0.x=320
8
-editor.fx.0.y=75
7
+editor.fx.0.x=305
8
+editor.fx.0.y=23
9
 objectbench.height=164
9
 objectbench.height=164
10
-objectbench.width=776
10
+objectbench.width=461
11
 package.divider.horizontal=0.6
11
 package.divider.horizontal=0.6
12
 package.divider.vertical=0.6845018450184502
12
 package.divider.vertical=0.6845018450184502
13
 package.editor.height=364
13
 package.editor.height=364
14
 package.editor.width=674
14
 package.editor.width=674
15
-package.editor.x=-1455
16
-package.editor.y=82
15
+package.editor.x=100
16
+package.editor.y=100
17
 package.frame.height=600
17
 package.frame.height=600
18
 package.frame.width=800
18
 package.frame.width=800
19
 package.numDependencies=1
19
 package.numDependencies=1