Is there any way I can input data into any array list without actually doing the following in each place in the code where I need to insert data?
ArrayList<dataType> kwh = new ArrayList<dataType>();
arrayListVariable.add(data);
arrayListVariable.add(moreData);
arrayListVariable.add(evenMoreData);
As of right now, this seems to be very time consuming if I need to put in quite a bit of data into the array list. Is there a simpler/more concise way of doing this?