Chinaunix首页 | 论坛 | 博客
  • 博客访问: 47840
  • 博文数量: 31
  • 博客积分: 228
  • 博客等级: 二等列兵
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-09 23:57
文章分类

全部博文(31)

文章存档

2012年(31)

我的朋友
最近访客

分类:

2012-04-13 00:07:22

原文地址:Java 基本数据类型 作者:luozhiyong131


点击(此处)折叠或打开

  1. /**
  2.  * Java 基本数据类型
  3.  * Lzy    2012-4-3
  4.  */
  5. public class Main
  6. {
  7.     public static void main(String args[])
  8.     {
  9.         boolean b = true;
  10.         int x, y = 9;
  11.         double d = 3.1415;
  12.         
  13.         char c1, c2;
  14.         c1 = '\u534e';
  15.         c2 = 'c';
  16.         x = 12;
  17.         
  18.         System.out.println("b=" + b);
  19.         System.out.println("x=" + x + ", y=" + y);
  20.         System.out.println("d=" + d);
  21.         System.out.println("c1=" + c1);
  22.         System.out.println("c2=" + c2);
  23.     }
  24. }
课件: Java 基本数据类型.pdf   
阅读(387) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~