How to add to a field in Java?

I have a private field.
I have created a new variable, which is an object.

How would I add the object variable, to my private field?

private Account account; //the field

Transaction transaction=new Transaction(reference); //the object variable
2 answers 2