62,614
社区成员
发帖
与我相关
我的任务
分享
public class Test {
public static void main(String[] args) {
Integer year=2008;
Integer month=8;
Integer result = year*100+month;
System.out.println(result);
}
}
Integer year=2008;
Integer month=8;
String str1=year.toString();
String str2=month.toString();
System.out.println(str1+str2);