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); }
转载于:https://www.cnblogs.com/lsjyjq/p/11119164.html
