Declare the return type of the method. In this case we'll return the combined name which is a String
.
public static String combineName(String firstName, String lastName) {
return firstName + " " + lastName;
}
Declare the return type of the method. In this case we'll return the combined name which is a String
.
public static String combineName(String firstName, String lastName) {
return firstName + " " + lastName;
}