Duplicate class error

class Test{

void meth(int i, int j){

i*=2;

j/=2;

}

}

class CallByValue{

public static void main(String args[]){

Test ob= new Test();

int a= 15, b=20;

System.out.println("a and b before call:" +a + "" +b);

ob.meth(a,b);

System.out.println("a and b after call:" +a +" " +b);

}

}

I am using NEtbeans IDE. It is showing dupicate class error in the above program. Please help..

[469 byte] By [Raghu_nca] at [2007-11-27 11:45:33]
# 1

You must have another class called Test or another class called CallByValue somewhere.

floundera at 2007-7-29 18:02:23 > top of Java-index,Java Essentials,New To Java...
# 2

> I am using NEtbeans IDE. It is showing dupicate class

> error in the above program. Please help..

If you are not sure about where there is another class exist with same name or not.. Try using package to avoid this error..

my_foruma at 2007-7-29 18:02:23 > top of Java-index,Java Essentials,New To Java...