Question: Assume you have a Document object, d , whose text is one ( 1 ] , two ( 2 ) , three ( 3 )

Assume you have a Document object, d, whose text is
"one (1], two (2), three (3)"
Which of the following calls to getTokens will return the list of Strings as follows:
["one","(1)", "two", "(2)", "three", "(3)"]?(
(Select all correct options.)
A.
d.getTokens("[*,]+");
B
d.getTokens("[",]+");
C
d.getTokens("[a-z()0-9]+");
D.
d.getTokens("[a-z]+|[()0-9]+");

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!