摘要:
一、普通代码块 直接在一个方法中出现的{}就称为普通代码块,例子程序如下: public class CodeDemo01{ public static void main(String[] args){ //普通代码块 { int x = 10; System.out.println("x=" + x); } int x = 100; System.out.println("x=" + x); } }二、构造代码块 直接在类中定义的没有加static关键字的代码块{}称为构造代码块,例子程序如下: public cl... 阅读全文
posted @ 2012-12-26 09:35
尼玛范爷
阅读(282)
评论(0)
推荐(0)
摘要:
1.运行(win+r)2.snippingtool 阅读全文
posted @ 2012-12-26 09:20
尼玛范爷
阅读(277)
评论(1)
推荐(1)

浙公网安备 33010602011771号