Given:
11. String test = "This is a test";
12. String[] tokens = test.split("\s");
13. System.out.println(tokens.length);
What is the result?
A. 0
B. 1
C. 4
D. Compilation fails.
E. An exception is thrown at runtime.
答案:D
參考:11-5 規則運算式與相關類別
JAVA,JAVASCRIPT,CSS,HTML,SCJP...等
沒有留言:
張貼留言