Good Day All!
I am trying to pass an object that has already been instantiated with certain properties set through methods keeping the properties in tact. How does someone do that?
Currently I am using an basic interface using the following code:
import java.util.ArrayList;
import java.util.List;

public interface TPerson{

//public Person p = null;


class Thrower {
Person p;

List<TPerson> listeners = new ArrayList<TPerson>();
public void addThrowListener(TPerson toAdd){

//public void Throw() {
//System.out.println("Something thrown");

//1 or more times, a Notification that an event happened is thrown.
//for (TPerson hl : listeners);

public Person getP() {
return p;

public void setP(Person p) {
this.p = p;


When I call setP from the object I want to transfer through the method and pass it that object it seems to just create a new one instead of passing that object with it's properties in tact.
Can someone point me in the right direction please. Thank you!