153k views
5 votes
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);

User Grimxn
by
5.5k points

1 Answer

2 votes

Answer:

8

Step-by-step explanation:

User Mattia Caputo
by
4.8k points