public class HelloWorld {
public static void main(String[] args) {
String name="Martin";
int i=23;
long age=i;
i=(int)age;
System.out.println(name+"的年龄是:"+i+"岁");
}
}
public class HelloWorld {
public static void main(String[] args) {
String name="Martin";
int i=23;
long age=i;
i=(int)age;
System.out.println(name+"的年龄是:"+i+"岁");
}
}
相关课程