1 public class 各种数据类型 { 2 static final int itime = 24; 3 public static void main(String[] args) { 4 byte bvolume = 64; 5 short shvolume = 1000; 6 int iage = 28; 7 long lkilometers = 3250; 8 float fpi = 3.14f; 9 double dpi = 3.1415926; 10 char chtext = '我'; 11 boolean boojudge = true; 12 System.out.println("每天都是"+itime+"小时,"); 13 System.out.println("最终结果 = " + (bvolume + shvolume + iage + lkilometers + fpi + dpi)); 14 System.out.println(chtext + "是对的"); 15 System.out.println("It's"+boojudge +" "+"!!!!!"); 16 17 } 18 19 }