首页>代码>java webservice实例教程>/webservice/src/com/young/service/CalculatorServiceImpl.java
package com.young.service;

/**
 * Created with IntelliJ IDEA.
 * User: veryyoung
 * Email:codingyoung@gmail.com
 * Date: 13-12-1
 * Time: 下午3:50
 * To change this template use File | Settings | File Templates.
 */
public class CalculatorServiceImpl implements CalculatorService{

    @Override
    public int add(int a, int b) {
        return  a+b;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public int sub(int a, int b) {
        return a-b;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public int mul(int a, int b) {
        return a*b;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public int div(int a, int b) {
        return a/b;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
最近下载更多
Zeorwyc  LV8 2022年5月7日
dengjunjun  LV15 2022年3月28日
lironggang  LV37 2021年4月29日
心中无码  LV5 2020年8月17日
hehe264  LV20 2020年5月11日
羞羞小子  LV13 2020年4月17日
luqb890913  LV12 2019年7月24日
jeep123456  LV10 2019年7月13日
itcaizhe  LV8 2019年5月14日
wsupsup  LV16 2018年9月29日
最近浏览更多
1529860026  LV24 6月1日
漫步的海星  LV4 3月14日
heqian  LV16 1月10日
唯易人生  LV3 2022年10月28日
ewan007  LV29 2022年9月17日
ljt289917726  LV3 2022年9月5日
飞梦ff  LV8 2022年7月24日
sjc199  LV2 2022年6月13日
Zeorwyc  LV8 2022年5月7日
gaotieyou  LV3 2022年4月11日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友