getFullname - create fullname

Puts the full name from the first name and surname.

StringBuilder name = new StringBuilder();
String firsName = entity.getFirstName();
String surname = entity.getLastName();
 
if (firsName) {
    name.append(firsName);
}
 
if (surname) {
	name.append(' ');
    name.append(surname);
}
 
name.toString();

Class java.lang.StringBuilder

  • by tsunami