Is it possible to access a getter from a class out of a List
of classes? See my code:
List<Object> words = getWorld().getObjects(Word.class);
for (Object word : words) {
if (word.getWord() == inputText) {
System.out.println("Test");
}
}
When compiling it says: cannot find method getWord().
Thanks in advance!