What is displayed by the following code?

```
String[] tokens = "A,B;C;D".split("[,;]");
for (int i = 0; i < tokens.length; i++)
System.out.print(tokens[i] + " ");
```
a. A,B;C;D
b. A B C D
c. A B C;D
d. A B;C;D

b. A B C D

Computer Science & Information Technology

You might also like to view...

An area in a template that is coded to insert a specific value is referred to as a field area

Indicate whether the statement is true or false

Computer Science & Information Technology

Which statement about the parameter definition

int (*compare)(int, int) is false? a) It defines a parameter that is a pointer to a function that receives two integer arguments and returns a pointer to an integer as a result. b) Parentheses are needed around *compare because * has a lower precedence than the parentheses enclosing the function parameters. c) Without the parentheses it would have defined a function that re-ceives two integers and returns a pointer to an integer. d) The corresponding parameter in the function prototype would ordinarily be int (*)(int, int)

Computer Science & Information Technology