import java.util.*;
class test extends Date{
	public static void main(String[] args) {
	    new test().tt();
	}
	public  void tt(){
	      System.out.println(super.getClass().getName());
	}
    
}

class Base
{
    void test(){
          System.out.println("base test()");
    }
}
class child extends Base{
    void test(){
          System.out.println("child test()");
    }
}

public class HelloWorld {
	public static void main(String[] args) {
		System.out.println("http://www.anycodes.cn/zh/");
	    System.out.println("1...................");
	    new test().tt();
	    System.out.println("2...................");
	    int x=12;
	    System.out.println("x+=x-=x*=x  >>>");
	    System.out.println(x+=x-=x*=x);
	    System.out.println("3...................");
	    child anobj =new child();
	    Base  baseobj = (Base)anobj;
	    baseobj.test();
	    System.out.println("4...................");
	      	int i,j;
		outer:for(i=1;i<3;i++)
		   inner:for(j=1;j<3;j++){
		       if(j==2)continue outer;
		       System.out.println("i= "+i+" j= "+j);
		   }
		   
	    System.out.println("5...................");
		  Thread t=new Thread(){
		      public void run(){
		          pong();
		      }
		  };
		  t.run();
		  System.out.print("ping");
	}
	static void pong(){
	      System.out.print("pong");
		   }
}
/*  运行输出
http://www.anycodes.cn/zh/
1...................
test
2...................
x+=x-=x*=x  >>>
-120
3...................
child test()
4...................
i= 1 j= 1
i= 2 j= 1
5...................
pongping
*/