public class splitString {
public static void main(String[] args)
{
String[] myArray = new String[1];
myArray[0] = "Java is an object oriented progaramming language";
String[] tempArray;
tempArray = myArray[0].split(" ");
for(int i = 0; i < tempArray.length; i++)
{
System.out.println(tempArray[i] + ":"+ tempArray[i].length());
}
}
}