Java Cannot intialize ArrayList variables in constructor : I have several different types of ArrayLists. Each stores split data from a .csv file. 

    //NOTE: this is for understanding, syntax may not be correct.
    ArrayList<String> name = {item1, item2, item3, item4};
    ArrayList<String> type = {type1, type2, type3, type4};
    ArrayList<Double> price = {price1, price2, price3, price4};
    ArrayList<Integer> qty = {qty1, qty2, qty3, qty4};

In my Item class I have a constructor like so,

    public Items(String t, String n, Double p, Integer q){
        type = t; //type mismatch : cannot convert from String to ArrayList<String>
        name = n;//type mismatch : cannot convert from String to ArrayList<String>
        price = p;//type mismatch : cannot convert from Double to ArrayList<Double>
        qty = q;//type mismatch : cannot convert from Integer to ArrayList<Integer>
    }

As you can see, I cant initialize my constructor because of different types. However, in my main method I call each variable as so,

    public static void main(String[] args){
        ArrayList<Items> itm = new ArrayList<Items>();
        Items general = new Items();

        //place each item into object itm
        for(int i = 0; general.name.size(); i++)
        {
            itm.add(new Items(general.type.get(i), general.name.get(i), general.price.get(i); general.qty.get(i)));
        } //throws no syntax errors

If I put "general.name.get(i)" for example, wouldn't Java see that as a String and not an ArrayList? How do I initialize these variables in my constructor?



 
