首页 > 其他 > 详细

2017 10.

时间:2017-10-08 22:03:50      阅读:267      评论:0      收藏:0      [点我收藏+]
import java.util.Scanner;
 public class L {
public static void main(String[] args) {
long a ;
a=123456789012345l; System.out.println(a); float b=2.4f; System.out.println(b);
boolean c=true; System.out.println(c); c=false; System.out.println(c); byte d=3; d=(byte)(d+200); System.out.println(d); System.out.println((char)(‘a‘+1));
System.out.println((char)(‘你‘+1)); int e=Integer.MAX_VALUE+1; System.out.println(e); @SuppressWarnings("resource") Scanner input=new Scanner(System.in); double f; System.out.println("Enter the x "); f = Double.valueOf(input.nextDouble()); f=f/1000*1000;
System.out.println("The calculation result is " + f);
           }
}

2017 10.

原文:http://www.cnblogs.com/777lixiaohui/p/7638726.html

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