9.28

public class aaa{
    
    static String s1 = "hello,";
    static String s2 = "gay!";
            public static void main(String[] args){
                System.out.println(s1);
                System.out.println(s2);
    byte b = 100;
    System.out.println("b = " + b);
    
    short s = 200;
    System.out.println("s = " + s);
    
    int i = 4;
    System.out.println("i = " + i);
    
    float f = 44.5f;
    double d = 5.5d;
    
    System.out.println("total = " + ( b + s + i + f + d));
    
    char c2 = 'a';
    System.out.println("c2 = '\n" + c2);
    
    char c = 80;
    System.out.println("c = " + c);
    
    boolean zhen = true,jia = false;
    System.out.println("zhen = " + zhen);
    System.out.println("jia = " + jia);
    
    final double DOUBLE = 3.1415926d;
    System.out.println("DOUBLE = " + DOUBLE);
    
    }
}
View Code
原文地址:https://www.cnblogs.com/shadowduke/p/4845008.html