Question:
Will the default delimiters "\t\n\r\f" be tokenized
for any arbitrary String?
The reason I ask is, the given String only contains 3 tokens:
String str = "tokens\twith tabs and \r\nnew lines.";
"\t\r\n\"
Please confirm.
About Question enthuware.ocpjp.v7.2.1625 :
Moderator: admin
-
- Posts: 78
- Joined: Sun Jun 30, 2013 10:04 pm
- Contact:
-
- Site Admin
- Posts: 10055
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1625 :
I am sorry but I did not understand your question. Could you please provide more info?
If you like our products and services, please help us by posting your review here.
-
- Posts: 78
- Joined: Sun Jun 30, 2013 10:04 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1625 :
The way that I understand explanation c) is :
c. Default delimiters " \t\n\r\f" will be used to tokenize the string. (that is, they will not be tokenized )
Because delimiters themselves will not be returned as tokens, the number of tokens will be 6.
1. tokens
2. with
3. tabs
4. and
5. new
6. lines.
Please confirm.
c. Default delimiters " \t\n\r\f" will be used to tokenize the string. (that is, they will not be tokenized )
Because delimiters themselves will not be returned as tokens, the number of tokens will be 6.
1. tokens
2. with
3. tabs
4. and
5. new
6. lines.
Please confirm.
-
- Site Admin
- Posts: 10055
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1625 :
That is correct.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: mcpunjabi and 41 guests