I need to get the id of these objects.
Object[] classe = getNames().toArray();
String[] strings = Arrays.stream(classe ).map(Object::toString).
toArray(String[]::new);
for (int i=0;i<strings.length;i++)
{
Integer id =strings[i].id;
}
Theoretically this would be the case, but I can not get the id. In the console the whole object appears to me.