zoukankan      html  css  js  c++  java
  • 3.1作业

    例3.1

    class DataDemo01{
      public static void main(string[] args){
        int num = 99999999999999999999999d
      }
    }

    例3.2

    class DataDemo02{
      public static void main(String[] args){
        int max = Integer.MAX_VALUE;
        System.out.println("整型的最大值:" + max);
        System.out.println("整型最大值 + 1:" + (max + 1));
        System.out.println("整型最大值 + 2:" + (max + 2));
      }
    }

    例3.3

    public class DataDemo03{
      public static void main(String[] args){
        int max = Integer.MAX_VALUE;
        System.out.println("整型的最大值:" + max);
        System.out.println("整型最大值 + 1:" + (max + 1));
        System.out.println("整型最大值 + 2:" + (max + 2L));
        System.out.println("整型最大值 + 1:" + ((long)max +2));
      }
    }

    例3.4

    public class DataDemo04{
      public static void main(String[] args){
        char ch1 = 'a';
        char ch2 = 97;
        System.out.println("ch1 = " + ch1);
        System.out.println("ch2 = " + ch2);
      }
    }

    例3.5

    public class DataDemo05{
      public static void main(String[] args){
        char ch1 = '"';
        char ch2 = '\';
        System.out.println("ch1 = "+ch1);
        System.out.println("ch1 = "+ch2);
        System.out.println(""Hello World"");
      }
    }

    例3.6

    public class DataDemo06{
      public static void main(String[] args){
        float num = 3.0f;
        System.out.println("两个小数相乘:"+num*num);
      }
    }

    例3.7

    public class DataDemo07{
      public static void main(String[] args){
        boolean flag = true;
        System.out.println("flag = "+flag);
      }
    }

  • 相关阅读:
    sklearn Pipeline 和Ploynomial
    python PCA
    python numpy 包积累
    python 画图
    Sklearn——逻辑回归
    R语言链接数据库
    R语言清空环境所有变量
    wordpress调用文件
    WordPress时间日期函数常用代码
    如何使WordPress博客添加多个sidebar侧边栏
  • 原文地址:https://www.cnblogs.com/ckun/p/5239605.html
Copyright © 2011-2022 走看看