← all problems

lastNameFirst 🌶️🌶️

Write a method that takes one String parameter, fullName, made of a first name, exactly one space, and a last name, and returns the name written as the last name, then a comma and a space, then the first name. For example, lastNameFirst("Ada Lovelace") should return "Lovelace, Ada".