betoesquivel

Java displaying objects

Feb 6th, 2015
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.17 KB | None | 0 0
  1. public String toString() {
  2.         return String.format("Address[street: %s, city: %s]", street, city);
  3.     }
  4.  
  5. //
  6. System.out.println(clase_que_implementa_el_metodo_toString);
Advertisement
Add Comment
Please, Sign In to add comment