Combining two String Arrays into an ArrayList in Java : I am working on a sample android app.  I have two string arrays: 

       private String[] titles = {
            "Manufacturer ", "Model ", "Product",  "Android Version ",
            "API Level ", "Board ", "Bootloader ",
            "Device ", "Hardware ", "CPU ",
            "Display " , "Serial Number ",
            "Type ", "User ", "Language ", "Rooted " };

    private String[] details = {
            Build.MANUFACTURER, android.os.Build.MODEL , Build.PRODUCT , Build.VERSION.RELEASE,
            version1, Build.BOARD, Build.BOOTLOADER, Build.DEVICE, Build.HARDWARE,Build.CPU_ABI, Build.DISPLAY,
            Build.SERIAL,Build.TYPE, Build.USER, Locale.getDefault().toString(), rooted()};

And need to combine them into an ArrayList.

This is the sample one they included:

    private ArrayList<DataObject> mess() {
        ArrayList results = new ArrayList<>();
        for (int index = 0; index < 20; index++) {
            DataObject obj = new DataObject("Titles " + index,
                    "Details " + index);
            results.add(index, obj);
        }
        return results;
    }

It passes to a RecyclerViewAdapter after