zoukankan      html  css  js  c++  java
  • 0928练习作业

     1 package hello;
     2 
     3 public class hello {
     4 
     5     public static void main(String[] args) {
     6 
     7 
     8         byte b=12;
     9         System.out.println("b="+b);
    10         
    11         short s=3;
    12         System.out.println("s="+s);
    13         
    14         int i =45;
    15         System.out.println("i="+i);
    16         
    17         long l=56;
    18         System.out.println("l="+l);
    19         
    20         float f=78.89f;    //数后要加F或f做标记
    21         System.out.println("f="+f);
    22         
    23         double d=234.45;
    24         System.out.println("d="+d);
    25         
    26         //'a'是字符
    27         char c='9';
    28         System.out.println("c="+c);//"a"是字符串
    29         
    30         boolean x=true;
    31         System.out.println("zhen="+x);
    32         
    33         boolean y=false;
    34         System.out.println("jia="+y);
    35         
    36         final float PAI;
    37         PAI=1.23456f;
    38         System.out.println("PAI="+PAI);
    39 
    40     }
    41 
    42 }
    hello

     

  • 相关阅读:
    简单 dp 题选做
    UVa11327
    Codeforces Round #641 (div.2) 题解
    新博客
    数位dp的学习
    stl粗略用法
    cf437C The Child and Toy
    poj1995 Raising Modulo Numbers
    Tarjan的学习
    最短路模板
  • 原文地址:https://www.cnblogs.com/zxw0004/p/4845188.html
Copyright © 2011-2022 走看看