Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started