首页>代码>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  LV38 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  LV9 2019年5月14日
wsupsup  LV16 2018年9月29日
最近浏览更多
罗清晨  LV11 2月28日
lee123321  LV22 2023年12月19日
1529860026  LV24 2023年6月1日
漫步的海星  LV4 2023年3月14日
heqian  LV16 2023年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日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友