I have a set of a set variable that (I guess) contains Strings returned from a query (that's all I know and need to retrieve) defined in this way:
private Set<Set<Type_A>> variable_A;
variable_A = query.getVarA();
Now I need a getter that returns an array of these Strings, and tried with the code below with no success, due to the its return type I guess.
I can't also debug my code because it's a javabean used by a jsp file and Eclipse won't give me a clue on how to proceed. Is there a way to fix this? I tried with public void getVarA()
and public ArrayList<String> getVarA()
public Set<Axiom> getVarA() {
Iterator itr1 = variable_A.iterator();
Set set;
while(itr1.hasNext()) {
set = (HashSet)itr1.next();
}
return set;
}