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; + } +}