Java program to split the given string.

Published --