You could write:
```java
public String[] getAnswers() {
    return Collections.list(listOfAnswers);
}
```

Please use API for collections in Java, it has optimized methods for all of the operations and it's worth to use than writing your own implementation.