From 6e6e298ca2cf45bfd0cdf80f21fbf4c9704f736a Mon Sep 17 00:00:00 2001 From: mojiayan Date: Thu, 6 Aug 2020 14:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=98=E6=B3=95=E8=BF=90=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/small_computer/MUL.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/small_computer/MUL.java diff --git a/src/small_computer/MUL.java b/src/small_computer/MUL.java new file mode 100644 index 0000000..4e7e43c --- /dev/null +++ b/src/small_computer/MUL.java @@ -0,0 +1,27 @@ +package small_computer; + +public class MUL { + private int a; + private int b; + public int getA() { + return a; + } + public void setA(int a) { + this.a = a; + } + public int getB() { + return b; + } + public void setB(int b) { + this.b = b; + } + public MUL() { + super(); + // TODO Auto-generated constructor stub + } + public int Mul(int a,int b) { + this.a =a; + this.b =b; + return a*b; + } +}