Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ,John
  2. Smith,
  3. Smith,John
  4.  
  5. String termWhole = null, termLast = null, termFirst = null;
  6. String[] tokens = str.split(",");
  7. termLast = tokens[0];
  8. termFirst = (tokens.length > 1 ? tokens[1] : null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement