目标是使用切换命令从帽子中绘制随机名称
String[] names = sc.next(); // how do I create an array of names with user
input? also, see case a.
case 'a':
System.out.println("\nPlease enter the names of the participants.");
final String[] names = {sc.next()};
/*how do I add multiple names in one
line? or by pressing enter for each additional name?*/
break;