请JAVA高手来,一道程序编程题。

[复制链接]
查看11 | 回复0 | 2009-6-29 20:09:41 | 显示全部楼层 |阅读模式
编写方法static int method1(int x)和static int method2(int x)m分别用if语句和switch语句计算如下函数的值。
f(x)=2x-1(x=0&&x=3&&x<5)return x+1;}static int method2(int x){switch(x){case <0:return ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行