码迷,mamicode.com
首页 > 其他好文 > 详细

2017 10.

时间:2017-10-08 22:26:55      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:class   stat   res   warnings   swa   static   port   ring   bool   

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.

标签:class   stat   res   warnings   swa   static   port   ring   bool   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!