About Question enthuware.ocpjp.v7.2.1626 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1626 :

Post by The_Nick »

Hi,
So it would be neither like regex nor like glob syntax. Their corresponding pattern would be [DELIM]. Is it correct?
Furthermore I see that there are 2 methods very similar nextToken and nextElement, the former return a String and the latter returns an Object.
What's the purpose of having nextElement? StringTokenizer always acts on Strings..

Thanks in advance.

The_Nick.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1626 :

Post by admin »

Why do you think it is not like regex?

nextElement is there because of the legacy Enumeration interface that StringTokenizer implements.

The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1626 :

Post by The_Nick »

admin wrote:Why do you think it is not like regex?

nextElement is there because of the legacy Enumeration interface that StringTokenizer implements.
Because in regex you would get the same pattern only between square brackets [DELIM] instead here is passed in the constructor without square brackets.

Thanks.
The_Nick.

pfilaretov
Posts: 35
Joined: Mon Jul 28, 2014 2:05 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1626 :

Post by pfilaretov »

Hi, Paul!
The first option "Do, Not, Do, This" can't be considered as correct because of NOT having comma at the end. So this simplifies the resolution. IMHO, it would be better to correct this option to "Do, Not, Do, This," (with comma at the end).
As you wish, though :)

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1626 :

Post by admin »

Added.
thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests