标签:
public class TestVar{
	//没空格
	   static int j;
	   //static int 数据j,我写成了i,先不赋值。
	   public void m(){   //m我写成了main。
	   	    int i = 0; //i=0之间,要空2个格子。
	   	    System.out.println("i");
	   }
	   //没空格
	   public static void main(String[] args){
	   	 int i = 0;
	   	 System.out.println(i);
	   	 System.out.println(j);
	   	 
	   	 boolean a=false;
	   	 if (a) {
	   	 	  int c = 0;
	   	 	  System.out.println("a is true");
	   	 } 
	   	 
	     long longNum1 = 888888888888L;
	   }
}
//漏了一个花括号..
//sum,C++果然是与Java大有不同,自己也有马虎的地方。加油。
标签:
原文地址:http://www.cnblogs.com/sayness/p/5274206.html