JAVAc初级

来源:互联网 发布:js button 不可用 编辑:程序博客网 时间:2024/05/21 14:03
package com.beicai.mp3;


public class Zi {






double money = 10.2;
double height = 168.5;


  public static void main(String[] args){
 int i =10;
 boolean b =true;
 double  d =10.2;
 float f = 10.56f;
 long l = 1000000;
 byte by =125;
 short s = 123;
 char c ='男';
  
 
 double money = 10.2;
 double height = 168.5;
 double a = 10.5;
 System.out.println("我是变量"+i);
 System.out.println("我是变量"+b);
 System.out.println("我是变量"+d);
 System.out.println("我是变量"+f);
 System.out.println("我是变量"+l);
 System.out.println("我是变量"+by);
 System.out.println("我是变量"+s);
 System.out.println("我是变量"+c);
 System.out.println("我是变量"+money);
 
 
}
}