java工作常用几种数据类型

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

  

原文地址:https://www.cnblogs.com/lly-lcf/p/13359144.html