public class data { String str = "字符串";//只能使用双引号 int a = 1;//数值一般使用int double b = 0.1;//浮点型 boolean c = true;//真 boolean d=false;//假 }