I want to create an object within a class, sending reference as a parameter to a function. Ho do I do that? It is very important to me.
public class TestClass {
private static Object someObject;
public static void main(String[] args) {
method(someObject);
}
private static void method(Object a)
{
a=new Object();
}
}