Help with small program please.

Question

import java.util.Scanner;

public class NameSong {
   public static void main (String [] args) {
      String secondVerse = "Banana-fana fo-f(Name)!";
      String userName = "Katie";

      userName = userName.substring(1); 
{
    secondVerse = "Banana-fana fo-f"+userName+"!";
}
      System.out.println(secondVerse);

      return;
   }
}


Why do I get this output?


 Testing Katie

Your output:Banana-fana fo-fatie!


 Testing Walter

Your output:Banana-fana fo-falter!


 Testing Katie and ending with !!! instead of !

Expected output:Banana-fana fo-fatie!!!
Your output:Banana-fana fo-fatie!

Thank you...

Details
Purchase An Answer Below

Have a similar question?