[Solved] more than one type in Arraylist

[ad_1]

This is not the proper way, but you can do something like this,

    ArrayList<Object> objects = new ArrayList<>();
    objects.add(1);
    objects.add("asd");

The better way is to create a different class with the attributes with Strings and int values you want. Then create an array with the type of that class and add those objects to the array.

[ad_2]

solved more than one type in Arraylist