Write a method named lastFirst that accepts a string as its parameter representing a person's first and last name. The method should return the person's last name followed by the first initial and a period. For example, the call lastFirst ("Marla Singer") should return "Singer, M.". You may assume that the string passed consists of exactly two words separated by a single space.
Find an answer to your question 👍 “Write a method named lastFirst that accepts a string as its parameter representing a person's first and last name. The method should return ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a method named lastFirst that accepts a string as its parameter representing a person's first and last name. The method should return the person's last name followed by the first initial and a period.