title: How do you combine two objects in java
body: <p>I have 2 objects that I need to combine before passing it to another method.</p>
  
  <pre><code>Status status1 = null;
  Status status2 = null;  
  Status statusCombined = null;   
  
  status1 =  validationService.validateDocument(documentA);
  status2 =  validationService.validateDocument(documentB);
  
  if (!status1.equals(status2) {
  //merge status1 and status 2 to  statusCombined
    setValidationStatus(validationResults,statusCombined);        
  </code></pre>
  
  <p>What is the command to combined these 2 objects with same properties?</p>
  
  <p>Thanks.</p>