This is what I have so far:
import javax.swing.JOptionPane;
public class question {
     public static void main(String [] args) {
         final int totalMaxParticipants = 283;
         String[] name = new String[totalMaxParticipants];
         getName(name);
     }
    public static void getName(String [] name) {
        final String Sentinal = "Q";
        for (int i = 0; i < name.length; i++) {
        name = JOptionPane.showInputDialog("Enter name: ");
        while (!name.equals(Sentinal)) {
        try {
           name = name;
        }
        catch(NumberFormatException e) {
           JOptionPane.showMessageDialog(null, "Error");
        }
        name = JOptionPane.showInputDialog("Enter name: ");   
     }
  }
}
I keep getting an error saying String cannot be converted to String[] and I cannot figure out how to fix it.
