I currently add elements to ArrayList using submethod and then call it in the main function:
public void addProductAll(){
productCode.add("202LED");
productCode.add("202WLED");
productCode.add("WWR");
productCode.add("CUBLED");
The problem is that I will have 200 different product codes. So my question is what is the fastest way to add elements to the ArrayList? Like I am doing now or maybe read them from text document? Is there a better approach to this problem?
Thank you in advance.