다음과 같은 방법으로 마지막 항목을 반환하지만 어떻게 주석 목록을 보낼 수 있습니까?목록의 반환 방법
내가 루프
public EList<Annotation> getAnnotation()
{
EList<Annotation> annotations = null;
for (Sc currSc : sche)
{
for (EntityS entitys : ent)
{
// Get annotation
annotations = entitys.getAnnotations();
}
}
return annotations;
}
정확하게 무엇을하려하고 있으며 무엇이 문제입니까? –
'annotations.addAll' – Alex