|
|
|
Помогите с "name:john;;sex:m;;".split(";");
|
|||
|---|---|---|---|
|
#18+
Всем привет, подскажите пожалуйста почему "name:john;;sex:m;;".split(";"); возвращает массив из трех элементов, а не из четырех, ведь символ разделителя встречается 4 раза?*??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.08.2014, 15:53 |
|
||
|
Помогите с "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 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=165&tid=2126790]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
167ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 203ms |
| total: | 435ms |

| 0 / 0 |
