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.
About Question enthuware.ocpjp.v7.2.1626 :
Moderators: Site Manager, fjwalraven
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1626 :
Why do you think it is not like regex?
nextElement is there because of the legacy Enumeration interface that StringTokenizer implements.
nextElement is there because of the legacy Enumeration interface that StringTokenizer implements.
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1626 :
Because in regex you would get the same pattern only between square brackets [DELIM] instead here is passed in the constructor without square brackets.admin wrote:Why do you think it is not like regex?
nextElement is there because of the legacy Enumeration interface that StringTokenizer implements.
Thanks.
The_Nick.
-
- Posts: 35
- Joined: Mon Jul 28, 2014 2:05 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1626 :
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
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

-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1626 :
Added.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 6 guests