Question: Task 5: The Name Game Write a method called naseGame that accepts a String as a parameter. Your method should break down the string looking
Task 5: The Name Game Write a method called naseGame that accepts a String as a parameter. Your method should break down the string looking for a space and do the name game song for the first and last mame. Your method can call other methods to remove redundancy. A sample output is below for nameGame("Heather Amthaue") Heather, Heather, ba-Beatbec Banana-fana te-Feathere Mce-mi-o-UcatheE HEATHER! Banana-fana fezEntbauec Mee-mi-me-Muthaus.r. AMTHAUER! Using indexof) and substring() can help you with this task. Complete the program by having the ma in method that call pameGams() with your full name.. Comment your method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
