Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ,John
- Smith,
- Smith,John
- String termWhole = null, termLast = null, termFirst = null;
- String[] tokens = str.split(",");
- termLast = tokens[0];
- termFirst = (tokens.length > 1 ? tokens[1] : null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement