From 43fdb5296e4010cd9a69d2c15e0f713f72e1f5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=87=91=E6=B2=B3?= <1262113654@qq.com> Date: Fri, 7 Aug 2020 02:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=B0=86=E7=B1=BB=E9=9B=86?= =?UTF-8?q?=E6=88=90=E5=88=B0=E5=90=8C=E4=B8=80=E7=9B=AE=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reset --- collaboration/jjcc.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 collaboration/jjcc.java diff --git a/collaboration/jjcc.java b/collaboration/jjcc.java new file mode 100644 index 0000000..1422948 --- /dev/null +++ b/collaboration/jjcc.java @@ -0,0 +1,26 @@ + +public class jjcc { + public static void main(String[] args) + { + System.out.println(add(1,2)); + System.out.println(sub(1,2)); + System.out.println(mul(1,2)); + System.out.println(div(1,2)); + } + public static double add(double a,double b) + { + return a+b; + } + public static double sub(double a,double b) + { + return a-b; + } + public static double mul(double a,double b) + { + return a*b; + } + public static double div(double a,double b) + { + return (double)a/b; + } +}