import java.util.Scanner;public class Demo08 { / 个人所得税计算 / public static void main(String[] args) { double salary;// 薪水,税前薪资 double payTax;// 应税薪资 double tax;// 税 double income;// 税后收入 Scanner scanner = new Scanner(System.in);System.out.print("请输...
年年年年.月月.日日Date date = sdf.parse(s);//将输入的字符串转化为DateCalendar cal = Calendar.getInstance();cal.setTime(date);//使用date设置此 Calendar 的时间int w = cal.get(Calendar.DAY_OF_WEEK) - 1;
1);String b=(i+"").substring(1, 2);String c=(i+"").substring(2);int temp=(int) (Math.pow(Integer.valueOf(a), 3)+Math.pow(Integer.valueOf(b), 3)+Math.pow(Integer.valueOf(c),
以姓氏为一个汉字为例import java.util.Scanner;public class Test{public static void main(String[] args){Scanner sc=new Scanner(System.in);String name=sc.next();String xing=name.substring(0,1);String ming=name.substring(1,name.length());System.out.println("姓氏:"+xing+" 名字:...
这是一个简单的Java题目,代码如下:while(x