java各型默认值
来源:互联网 发布:js 二维数组 indexof 编辑:程序博客网 时间:2024/06/06 09:40
package 第二次作业; //Java包
public class 第五题 { //类名
static char zifu; //定义字符型,在主函数前定义,可不赋值
static float duanzheng; //定义短整型
private static double changzheng; //定义长整型
private static boolean buer; //定义布尔型
private static String zifuchuan; //定义字符串
public static void main(String[]args) {
System.out.println("char默认值为"+zifu);
System.out.println("float默认值为"+duanzheng);
System.out.println("double默认值为"+changzheng);
System.out.println("boolean默认值为"+buer);
System.out.println("String默认值为"+zifuchuan);
}
}
static char zifu; //定义字符型,在主函数前定义,可不赋值
static float duanzheng; //定义短整型
private static double changzheng; //定义长整型
private static boolean buer; //定义布尔型
private static String zifuchuan; //定义字符串
public static void main(String[]args) {
System.out.println("char默认值为"+zifu);
System.out.println("float默认值为"+duanzheng);
System.out.println("double默认值为"+changzheng);
System.out.println("boolean默认值为"+buer);
System.out.println("String默认值为"+zifuchuan);
}
}
阅读全文
0 0
- java各型默认值
- java 各型默认值
- java各型定义数组时的默认值
- java 定义数组是各型默认值
- java函数参数默认值
- java函数参数默认值
- java函数参数默认值
- Java基本类型默认值
- java 变量默认值
- java变量默认值
- java基本数据类型默认值
- java数组默认值
- java变量默认值
- java变量默认值
- java基本成员默认值
- java数据类型的默认值
- java 方法设置默认值
- 各型笔记本拆机说明
- centos下svn安装配置
- 最长公共子串
- JAVA的包装类 【转】
- Caffe下运行MNIST数据集
- 有趣的线段树小集合 Codeforces Round #250 (Div. 1) D. The Child and Sequence
- java各型默认值
- Defining Base and Derived Classes
- Qt-Quit
- Centos6.5服务器配置nginx的https证书(yum 安装的nginx)
- JDBC连接的封装函数
- 自适应笔记1
- linux上运行spark程序
- 哇,终于弄好了,快速部署Tale博客系统
- EasyUI进阶:一、如何在Dialog中显示iframe内容