```
    String [] vKeywordsArray;
    int vNumberofKeywords = Integer.parseInt(JOptionPane.showInputDialog("How many keywords do you want to enter?"));
    vKeywordsArray = new String[vNumberofKeywords];  
    int i=0;
    while (i < vNumberofKeywords)
    {
         vKeywordsArray[i] = JOptionPane.showInputDialog("Please enter your keyword to be stored in index " +i+ ".");
         i++;
    }
    JOptionPane.showMessageDialog(null, "Thank you for the input(s).");          
    for (int j=0; j < vKeywordsArray.length; j++)
    {
       String vKeywords = JOptionPane.showInputDialog("What would you like to talk about today?");
       boolean vCheck = vKeywords.contains(vKeywordsArray[j]);
       while (vCheck == false)
       { 
           vKeywords = JOptionPane.showInputDialog("Sorry I did not get that, please enter one of the relevant keywords mentioned earlier.");
       }
    }
}

```