Discover the answers you need at Westonci.ca, a dynamic Q&A platform where knowledge is shared freely by a community of experts. Join our Q&A platform and connect with professionals ready to provide precise answers to your questions in various areas. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

What is the output of the following code segment?

String[] cs = "Elon Musk founded SpaceX on May 6, 2002.".split(" ");

System.out.println(cs.length);