Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. ArrayList<String> name = new ArrayList<String>();
  2.     while(userIn.equals(".") != true) {
  3.         userIn = scan.next();
  4.         name.add(userIn);
  5.     }
  6.     for(int i = 0; i < name.size(); i++) {
  7.         userIn= userIn +" "+ name.get(i);
  8.         userIn = userIn.replace(".", "");
  9.        
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement