I have full name (ex : Robert King) separated by space in Database. I want to split the full name to FIRSTNAME and LASTNAME and assign it to two variables. How to achieve this in JAVA? I know it is simple but found it difficult to assign to two variable after split.
Share
This is a didactic example: