Primero
This commit is contained in:
@@ -51,12 +51,9 @@ public class Pais {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Pais{" +
|
||||
"id=" + id +
|
||||
", nombre = '" + nombre + '\'' +
|
||||
", capital = '" + capital + '\'' + "," +
|
||||
continente +
|
||||
'}';
|
||||
return nombre + " (" + id + "), con capital en " + capital
|
||||
+ " pertenece a " + continente.getNombre()
|
||||
+ " (" + continente.getCodigoContinente() + ")";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user