Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
Add Comment
Please, Sign In to add comment