I have a problem with the print of my Vector: i have this Vector:
Vector<StructRicetta> Ricetta=new Vector<StructRicetta>();
The class StructRicetta:
public class StructRicetta {
String nomeric;
int n;
Vector<String> ingrediente=new Vector<String>();
Vector<String> quantita=new Vector<String>();
Vector<Boolean> facoltativo=new Vector<Boolean>();
String preparazione;
}
I read the value of this structure from a file. And in the reader function i return to a StructRicetta type and i add it in the vector:
Ricetta.add(Myclass.reader());
Now how can i print the results??
Thank you!