|
|
|
конструкция " if ? : "
|
|||
|---|---|---|---|
|
#18+
Напомните, please, конструкцю if (ниже). авторpublic static <E> void replace(List<E> list, E val, E newVal) { for (ListIterator<E> it = list.listIterator(); it.hasNext(); ) if (val == null ? it.next() == null : val.equals(it.next())) it.set(newVal); } Если переменная val null-овая, то .... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2007, 12:27:41 |
|
||
|
конструкция " if ? : "
|
|||
|---|---|---|---|
|
#18+
след. проверится Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2007, 12:46:00 |
|
||
|
конструкция " if ? : "
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. Код: plaintext 1. 2. 3. 4. 5. 6. _______________________________________ 2pro4U ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2007, 15:18:41 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=602&tid=2144284]: |
0ms |
get settings: |
19ms |
get forum list: |
26ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
55ms |
get topic data: |
24ms |
get forum data: |
6ms |
get page messages: |
82ms |
get tp. blocked users: |
3ms |
| others: | 374ms |
| total: | 603ms |

| 0 / 0 |
