zoukankan      html  css  js  c++  java
  • 第三周

    1
    public class Lin{
       public static void main(String[] args)
       {
           long l=123456789012345l;
          System.out.println(l);
       }
    }
    2.
    public class Float{
       public static void main(String[] args)
       {
           float f=2.4f;
          System.out.println(f);
       }
    }
    3.
    public class Bl{
       public static void main(String[] args)
       {
           boolean b=true;
           System.out.println(b);
           b=false;
        System.out.println(b);   
       }
    }

    4.
    public class Be{
       public static void main(String[] args)
       {
           byte b=3;
        b=(byte)(b+200);
      System.out.println(b);   
       }
    }
    5.
    public class So{
       public static void main(String[] args)
       {
            System.out.println((char)('a'+1));
            System.out.println((char)('你'+1));
       }
    }

    6.

    public class M{
       public static void main(String[] args)
       {
      int i=Integer.MAX_VALUE+1;
      System.out.println(i);
       }
    }
    7.

    import java.util.Scanner;
    public class Mh{
       public static void main(String[] args)
       {
            Scanner input=new Scanner(System.in);
      double x;
      System.out.println("Enter the x ");
            x = Double.valueOf(input.nextDouble());
      x=x/1000*1000;
      System.out.println("The calculation result is " + x);
       }
    }

  • 相关阅读:
    ThreadLocal
    贪心算法
    KMP
    多线程设计模式
    String 为什么是不可变的
    6-Ubuntu—截屏与截取选定区域
    5-Ubuntu—查看进程并关闭进程
    4-python基础—查看模块所在位置(适应于任何操作系统)
    4-Ubuntu—终端下重启与关机
    3-python基础—enumerate()
  • 原文地址:https://www.cnblogs.com/kuangzhiwei/p/7591253.html
Copyright © 2011-2022 走看看