|
|
|
Помогите с "name:john;;sex:m;;".split(";");
|
|||
|---|---|---|---|
|
#18+
Всем привет, подскажите пожалуйста почему "name:john;;sex:m;;".split(";"); возвращает массив из трех элементов, а не из четырех, ведь символ разделителя встречается 4 раза?*??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.08.2014, 15:53:05 |
|
||
|
Помогите с "name:john;;sex:m;;".split(";");
|
|||
|---|---|---|---|
|
#18+
Наверное, потому что RTFM http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String) Trailing empty strings are therefore not included in the resulting array. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.08.2014, 15:59:52 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=59&tid=2126790]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
38ms |
get topic data: |
13ms |
get forum data: |
4ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 316ms |
| total: | 450ms |

| 0 / 0 |
