I need to write my data inside two arraylist into these format of CSV file
Domain Total
gmail.com 90
Application Total
IP 1 30
IP 2 30
IP 3 30
the first arraylist will store the data for domain and total which will look like the following. The sequence of the data in the arraylist is Total,Domain
[2212, gmail.com"]
the second arraylist will store the data for application and total which will look like the following.The sequence of the data in the arraylist is IP,Total
["192.168.0.175", 403, "192.168.0.26", 1809]
I am looking a best way for write my data into the csv file but I cant really understand how it's work? Can anybody provide any direction, I am lost in this part now