Guest User

Untitled

a guest
Jan 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. String[] names = sc.next(); // how do I create an array of names with user
  2. input? also, see case a.
  3.  
  4. case 'a':
  5. System.out.println("nPlease enter the names of the participants.");
  6. final String[] names = {sc.next()};
  7.  
  8. /*how do I add multiple names in one
  9. line? or by pressing enter for each additional name?*/
  10.  
  11. break;
Add Comment
Please, Sign In to add comment