Feedback? CHALLENGE ACTIVITY 3.15.2: Name song. Modify songVerse to play “The Name Game” (OxfordDictionaries.com), by replacing “(Name)” with userName but without the first letter. Ex: If userName = “Kaitlin” and songVerse = “Banana-fana fo-f(Name)!”, the program prints: Banana-fana fo-faitlin! Ex: If userName = “Kaitlin” and songVerse = “Fee fi mo-m(Name)”, the program prints: Fee fi mo-maitlin Note: You may assume songVerse will always contain the substring “(Name)”
This question is an example of a Java string Manipulation which involves modification of a given string to replace a substring with a modified version of a user-input string.
Get Java Help Online from our experienced expert and experience academic excellence without stress!