How do i modify the program to allow the user to enter more than 1 word and have a hypen after every 4 digits in the output? Do i create another loop at the end of the while loop ? what should i do?

```
import java.util.Arraylist;
import java.util.list;
import java.util.Scanner;
{     public static void main (String[] args)     
     {     
       Scanner  console = new Scanner(System.in);
        List<String> input = new ArrayList<String>();
        String line = console.nextLine();
        while(!line.equals("")) {
        input.add(line);
        line = console.nextLine();
 }
        for(String Letter: input)
        {       
            System.out.println("Enter the a word to be converted : ");
            String Letter = console.nextLine();
            Letter = Letter.replaceAll("\\s", "");
            Letter = Letter.toLowerCase();
            String  Number="";
            int count=0;
            int  i=0;

 while(count < Letter.length())       
{

  switch(Letter.charAt(i))        {
           case 'A':case 'B':case 'C': case 'a': case 'b': case 'c':                  

                    Number += "2";
                    count++;
                    break;
                    case 'D':case 'E':case 'F': case 'd': case 'e': case 'f':                Number += "3";
                    count++;
                    break;
                    case 'G':case 'H':case 'I': case 'g': case 'h': case 'i':               Number += "4";
                    count++;
                    break;
                    case 'J':case 'K':case 'L': case 'j': case 'k': case 'l':               Number += "5";
                    count++;
                    break;
                    case 'M':case 'N':case 'O': case 'm': case 'n': case 'o':           Number += "6";
                    count++;
                    break;
                    case 'P':case 'R':case 'S': case 'p': case 'r': case 's':               Number += "7";
                    count++;
                    break;
                    case 'T':case 'U':case 'V': case 't': case 'u': case 'v':              Number += "8";
                    count++;
                    break;
                    case 'W':case 'X':case 'Y':case 'Z': case 'w': case 'x': case 'y': case 'z':          Number += "9";
                    count++;
                    break;
                }
                if(  count==3) {        Number += "-";
                }
                i++;
            }
            System.out.println( Number );
        }
    }
}

```

Output now

```
 Enter the word to be converted :
 callhome
 225-54663

```

Expected output

```
 Enter the words to be converted :
 callhome
 hereherehereherehere
 comecomecomecomecome

 225-5466-3
 437-3437-3437-3437-3437-3
 266-3266-3266-3266-3266-3

```