Files
spring-boot-rest/java-strings-ops/src/main/java/com/baeldung/string/tostring/CustomerComplexObjectToString.java
Martin van Wingerden 81c6758d01 [BAEL-3291] Move missing code snippets for the String Numeric article
Also: format the java-strings-ops project with required eclipse profile
2019-10-23 21:32:49 +02:00

18 lines
438 B
Java

package com.baeldung.string.tostring;
public class CustomerComplexObjectToString extends Customer {
private Order order;
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
@Override
public String toString() {
return "Customer [order=" + order + ", getFirstName()=" + getFirstName() + ", getLastName()=" + getLastName() + "]";
}
}