What is the result of compiling and running the following program? import java.util.Arrays; class Split2 { public static void main(String[] args) { String str = "She sells sea shells"; System.out.println(Arrays.toString(str.split("\s"))); } }
Compiler error
An exception is thrown at runtime
Prints [She, sells, sea, shells]
Prints [he, ells, ea, hells]
Prints []