⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 minvariablesdemo.java

📁 初期JAVA学习非常有用的资料。帮助深入了解API。特别是Applet。
💻 JAVA
字号:
public class MinVariablesDemo {    public static void main(String args[]) {        // integers        byte smallestByte = Byte.MIN_VALUE;        short smallestShort = Short.MIN_VALUE;        int smallestInteger = Integer.MIN_VALUE;        long smallestLong = Long.MIN_VALUE;        // real numbers        float smallestFloat = Float.MIN_VALUE;        double smallestDouble = Double.MIN_VALUE;        // other primitive types        char aChar = 'r';        boolean aBoolean = false;        // display them all        System.out.println("The smallest byte value is " + smallestByte);        System.out.println("The smallest short value is " + smallestShort);        System.out.println("The smallest integer value is " + smallestInteger);        System.out.println("The smallest long value is " + smallestLong);        System.out.println("The smallest float value is " + smallestFloat);        System.out.println("The smallest double value is " + smallestDouble);        if (Character.isLowerCase(aChar)) {            System.out.println("The character " + aChar + " is lower case.");        } else {            System.out.println("The character " + aChar + " is upper case.");        }        System.out.println("The value of aBoolean is " + aBoolean);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -