mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +07:00
23 lines
437 B
Plaintext
23 lines
437 B
Plaintext
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
List<String> foo(String[] strs)
|
|
{
|
|
final List<String> result = new ArrayList<String>();
|
|
int start = -1;
|
|
for (int i = 0; i < strs.length; i++)
|
|
{
|
|
if (i == 42 && start == -1)
|
|
{
|
|
start = i;
|
|
} else if (i != 24 && start != -1)
|
|
{
|
|
//c1
|
|
result.add("".substring(start));
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
} |