class static1
{
    public static int x;
    public int y;   

}


--------------------------------

class static1Test
{
    public static void main(String[] args)
    {
        static1 o1 = new static1();
        static1 o2 = new static1();
        o1.x=1;
        o1.y=2;
        o2.x=3;
        o2.y=4;
        System.out.printf("%d %d %d %dn",
                o1.x,o1.y,o2.x,o2.y);
    }
}

--------------------------------
3 2 3 4
계속하려면 아무 키나 누르십시오 . . .