zoukankan      html  css  js  c++  java
  • 第三次邓艳丽

    import java.util.Scanner;

    public class TingGeGe{
    public static void main(String[] args){
    long l=123456789012345l;
    System.out.print("长整数的的值是:"+l+" ");

    float f=2.4f;
    System.out.print("单精度的小数是:"+f+" ");

    boolean b=true;
    b=false;
    System.out.print("布尔型变量的值是:"+b+" ");

    byte c=3;
    c=(byte)(c+200);
    System.out.print(c);

    System.out.print((char)('a'+1)+" "); 
    System.out.print((char)('你'+1)+" ");

    int e=Integer.MAX_VALUE+1; 
    System.out.print(e);

    @SuppressWarnings("resource") 
    Scanner input=new Scanner(System.in); 
    double t;
    System.out.print("Enter the x "+" ");
    t = Double.valueOf(input.nextDouble());
    t=t/1000*1000;
    System.out.print("The calculation result is " + t +" ");


    }

    }

  • 相关阅读:
    学习python第二天
    学习python第一天
    SQL操作
    JAR规范 JAR File Specification
    IDEA快捷键
    Fibonacci数列
    AnyHandler
    测试UDP
    Eclipse卡顿设置
    服务器初始化操作
  • 原文地址:https://www.cnblogs.com/luhan7/p/7591370.html
Copyright © 2011-2022 走看看