toString (outstanding)


/ Published in: Java
Save to your folder(s)

This was how I should have done it.


Copy this code and paste it in your HTML
  1. public String toString() {
  2. return super.toString() +
  3. " [Place: " + place +
  4. "; State: " + state +
  5. "; Postcode: " + postcode +
  6. "; Country: " + country;
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.