mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
16 lines
316 B
Java
16 lines
316 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testCast(List<Object> data) {
|
|
String found = null;
|
|
for (Object obj : da<caret>ta) {
|
|
if(obj instanceof String) {
|
|
found = (String)obj;
|
|
break;
|
|
}
|
|
}
|
|
System.out.println(found);
|
|
}
|
|
} |