简单的输出个人信息

public static void main(String[] args){
String name="李顺";
int age= 21;
char gender='男';
String hobby="唱,跳,跑步";
float weight=64.5f;
boolean isMarried = false;
long tel = ***********ll;
float PI=3.1415926f;
System.out.println("----------2019---------------");
System.out.println("姓名:"+name);
System.out.println("年龄:"+age);
System.out.println("性别:"+gender);
System.out.println("爱好:"+hobby);
System.out.println("体重:"+weight);
System.out.println("婚否:"+isMarried);
System.out.println("电话:"+tel);
System.out.println("圆周率:"+PI);

System.out.println("----------2020---------------");
age++;
weight-=10f;
System.out.println("姓名:"+name);
System.out.println("年龄:"+age);
System.out.println("性别:"+gender);
System.out.println("爱好:"+hobby);
System.out.println("体重:"+weight);
System.out.println("婚否:"+isMarried);
System.out.println("电话:"+tel);
System.out.println("圆周率:"+PI);

}

上一篇:2019-07-06 sql 连续出现次数


下一篇:Android 链接通讯录拨打电话