mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
19 lines
512 B
Java
19 lines
512 B
Java
public class C {
|
|
public void doSomething() {
|
|
for (Iterator it = getSomeObjects().iterator(); it.hasNext();) {
|
|
String text = (String)it.next();
|
|
System.out.println("text = " + text);
|
|
}
|
|
}
|
|
|
|
private Collection <caret>getSomeObjects() {
|
|
final String text = "hello";
|
|
return getSomeObjects(text);
|
|
}
|
|
|
|
private Collection getSomeObjects(String text) {
|
|
final List list = new ArrayList();
|
|
list.add(text);
|
|
return list;
|
|
}
|
|
} |