How do I return an array of objects in java?
try this
public ArrayList<ObjectsType> fName(){ ArrayList<ObjectsType>objectsList=new ArrayList<>(); objectList.add(objets); return objectList; }