首页 > 其他 > 详细

9.28

时间:2015-09-28 22:08:51      阅读:174      评论:0      收藏:0      [点我收藏+]
技术分享
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技术分享

 

9.28

原文:http://www.cnblogs.com/shadowduke/p/4845008.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!